Created
December 29, 2019 14:34
-
-
Save abel0b/da0d0901f17062e2212a0de0f0603807 to your computer and use it in GitHub Desktop.
Measure time in millisecond in bash
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
start=$(date +%s%3N) | |
sleep 42 | |
end=$(date +%s%3N) | |
echo done in $((end-start))ms |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment