start=$(date +%s) num=`seq 10000` for i in $num;do echo "$i" done stop=$(date +%s) different=$((stop - start)) echo "$different seconds"
时间: 2024-12-29 23:46:20
start=$(date +%s) num=`seq 10000` for i in $num;do echo "$i" done stop=$(date +%s) different=$((stop - start)) echo "$different seconds"