Skip to content

Instantly share code, notes, and snippets.

@abel0b
Created December 29, 2019 14:34
Show Gist options
  • Save abel0b/da0d0901f17062e2212a0de0f0603807 to your computer and use it in GitHub Desktop.
Save abel0b/da0d0901f17062e2212a0de0f0603807 to your computer and use it in GitHub Desktop.
Measure time in millisecond in bash
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