Created
July 19, 2016 07:51
-
-
Save masayuki5160/5bc21792f0c0a22877f2c1c75aa35f5e to your computer and use it in GitHub Desktop.
shでmsecを出力したいときのサンプル
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
#/bin/sh | |
echo $(date +%Y%m%d-%H:%M:%S) $(printf '%03d' $(expr `date +%N` / 1000000)) msec |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
出力結果
20160719-07:48:47 031 msec