sw - StopWatch
Terminal stopwatch
Install
To install sw
using Sinister, run
wget -q -O - http://git.io/sinister | sh -s -- -u https://raw.githubusercontent.com/coryfklein/sw/master/sw
Or just download sw directly and place it on your PATH somewhere.
Usage
sw
- start a stopwatch from 0, save start time in ~/.sw
sw [-r|--resume]
- start a stopwatch from the last saved start time (or current time if no last saved start time exists)
- "-r" stands for --resume
Centiseconds
macOS comes bundled with BSD's date
which does not print sub-second dates and thus sw
will not print centiseconds. I recommend installing GNU date
to enable this improved functionality:
brew install coreutils