Skip to content

Instantly share code, notes, and snippets.

@mmynsted
Created April 9, 2014 17:57
Show Gist options
  • Save mmynsted/10297429 to your computer and use it in GitHub Desktop.
Save mmynsted/10297429 to your computer and use it in GitHub Desktop.
A simple stopwatch
!/bin/sh
count=0
interval=60
while true
do
echo -ne "$(date +%Y-%m-%dT%H:%M:%S) | $((count/interval)) mins : $1"'\r'
let count+=interval
sleep $interval
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment