class

Cresium::Stopwatch

Inherits Cresium::Clock < Reference < Object

Counts elapsed time since start, with pause/reset and lap recording.

Instance methods

format(with_millis : Bool = true) : String

Elapsed time as hh:mm:ss[.fff].

Source
lap

Records elapsed into laps. No-op if not running.

Source
laps

Timestamps recorded by lap, in chronological order.

Source
reset

Resets the clock to zero and clears recorded laps.

Source
zero?

True while stopped at 00:00:00 (never started, or just reset).

Source