Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AndrienkoAleksandr/7a2871f68944796d1dbab2f238554325 to your computer and use it in GitHub Desktop.
Save AndrienkoAleksandr/7a2871f68944796d1dbab2f238554325 to your computer and use it in GitHub Desktop.
time Diff
t1=$(date +%s) && sleep 1 && t2=$(date +%s) && echo $(( t2 - t1 ))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment