Skip to content

Instantly share code, notes, and snippets.

@cbillowes cbillowes/
Last active Oct 17, 2018

What would you like to do?
echo "Stopwatch"
date1=`date +%s`;
while true; do
echo -ne "$(date -u --date @$((`date +%s` - $date1)) +%H:%M:%S)\r";
sleep 0.1
# chmod +x stopwatch
# stopwatch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.