module Athena::Clock::Interface
#
Represents a clock that returns a Time
instance, possibly in a specific location.
Direct including types
Athena::Clock
Athena::Clock::Monotonic
Athena::Clock::Native
Athena::Clock::Spec::MockClock
Methods#
abstract #in_location(location : Time::Location) : self
#
Returns a new clock instance set to the provided location.
abstract #now : Time
#
Returns the current time as determined by the clock.
abstract #sleep(span : Time::Span) : Nil
#
Sleeps for the provided span of time.