Skip to main content

Basic recipes

Start here when you need a single lifecycle or a display-only timer.

Core only

  • Wall clock: use timer.now and format the Date in your app.
  • Stopwatch: use elapsedMilliseconds for active elapsed time.
  • Absolute countdown: derive remaining time from expiresAt - timer.now.
  • Manual controls: wire start, pause, resume, reset, restart, and cancel.

Core + duration