Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
# 1970-01-01 00:00:00からの秒数.ミリ秒返す
function millisec() {
echo $(date +%s).$(expr $(date +%N) / 1000000)
}
# コマンドの実行時間を計測する
# 例)
# measure echo "hello"