This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# 1970-01-01 00:00:00からの秒数.ミリ秒返す | |
function millisec() { | |
echo $(date +%s).$(expr $(date +%N) / 1000000) | |
} | |
# コマンドの実行時間を計測する | |
# 例) | |
# measure echo "hello" |
NewerOlder