Why is my timer showing the same value even after printing 100 digits in bash

前端 未结 0 1187
死守一世寂寞
死守一世寂寞 2021-01-18 11:32

So I have the following bash script:

#!/bin/bash

start_timer=$(date +%s)
echo $start_timer

for ((i=1;i<=100;i++));
do
    echo $i
done

end_timer=$(date          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题