caculate the time you cost
- support ns
- support start key
- support end key
- support mock
- cost_get
- cost_set
- recordTime
- caculateTime
cat src/index.sh | grep "function " | sed "s/function */- [x] /g" | sed "s/() *{//g"
# get the code
# run the index file
# ./index.sh
# or import to your sh file
# source /path/to/the/index file
# usage
recordTime "repalceContent"
sleep 61
caculateTime "repalceContent"
:<<output
repalceContent.start:2020-03-23 08:42:39
repalceContent.end:2020-03-23 08:43:40
repalceContent.cost:1m1s
output
# get the code
# run test
./test.sh
yemiancheng ymc.github@gmail.com
MIT