Skip to content

LeBaux/sw

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

sw - StopWatch

Terminal stopwatch

sw

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

About

Terminal stopwatch

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%