Skip to content

jonavos/sw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sw

A tiny terminal stopwatch. Counts up with millisecond precision and reads single keypresses (no Enter needed) to take laps or quit.

Build

go build -o sw .

Run

./sw

Keys

Key Action
Space Freeze the current time on its own line, tagged #N, and keep counting
q or Ctrl-C Print the current time and quit

Display

The format scales with elapsed time so the display stays compact:

Elapsed Format Example
Under 1 minute S.mmm 7.421
Under 1 hour M:SS.mmm 3:07.421
1 hour or more H:MM:SS.mmm 1:03:07.421

The line refreshes in place at 100 Hz via carriage return.

About

A simple Go stopwatch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages