~spxtr/htimer

Simple graphical timer/stopwatch.
Fix the cast. Should be done now, no?
Add centisecond accuracy.
Flash window when the timer runs out.

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~spxtr/htimer
read/write
git@git.sr.ht:~spxtr/htimer

You can also use your local clone with git send-email.

Very simple graphical timer/stopwatch program. Depends on my fork of hare-sdl2:

	https://git.sr.ht/~spxtr/hare-sdl2

(ensure it is in your HAREPATH). Build with make.

Usage: ./timer [-hf] [-t <title>] [duration]

-h prints help. -f makes it fullscreen. -t sets the title of the window, which
is useful if you're running multiple at once. -c makes it show centiseconds. If
duration is not provided, then the program counts up from 0. If it is provided,
it should be of the form "5m30s" for 5 minutes and 30 seconds, for example. h
and d also work for hours and days respectively.

While the clock is open, press space or p to toggle pause/resume, r to reset,
c to toggle subsecond accuracy, and f to toggle fullscreen.