sparksp / timers

A collection of timers written with Elm.
https://timers.phills.me.uk/
1 stars 1 forks source link

Restwatch with Countdown #174

Open sparksp opened 2 years ago

sparksp commented 2 years ago

It would also be useful to have the first Restwatch timer set to a fixed amount of time (a Countdown) - so that someone can have 60 seconds of activity followed by 90 seconds (150%) of rest (and automatically repeat until stopped).

The current Restwatch only uses a Stopwatch to decide how long to set the subsequent Countdown.

sparksp commented 2 years ago

This could be implemented by allowing the user to "create" their own timer built up from 1 or more Stopwatches or Countdowns (either fixed time or relative to a previous timer), and by adding the option to repeat X times or forever. The current options could then be remade using this system.

Whenever 'repeat' is used an overall run time should be displayed.

Stopwatches that 'repeat forever' are effectively a 'lap' system - a history should be shown for each repeated stopwatch.

Relative Countdowns take their input from the previous item (either a Stopwatch or Countdown). Relative Countdowns that are the first item are set initially to 0, but when repeated could take the total time from the previous lap. A timer cannot contain only Relative Countdowns.