class Athena::Clock::Monotonic
inherits Reference
#
The monotonic clock is primarily intended to be use to measure time, such as for a stopwatch. It's measurements are unaffected by inconsistencies sometimes introduced by the system clock. See Measuring Time for more information.
Included modules
Athena::Clock::Interface
Constructors#
.new(location : Time::Location | Nil = nil)
#
Methods#
#in_location(location : Time::Location) : self
#
Returns a new clock instance set to the provided location.
#now : Time
#
Returns the current time as determined by the clock.
#sleep(span : Time::Span) : Nil
#
Sleeps for the provided span of time.