#!/bin/bash
#time_take.sh
start=$(date +%s) #空
no=100
echo "obase=2;$no" | bc
no=1100100
echo "obase=10;ibase=2;$no" | bc
echo "sqrt(100)" | bc
echo "10^10" | bc
end=$(date +%s)
diff=$((end - start)) #双
echo Time taken to excute cmd is $diff sec.
阅读(788) | 评论(0) | 转发(0) |