module

Athena::Clock::Interface

Represents a clock that returns a Time instance, possibly in a specific location.

Instance methods

in_location(location : Time::Location) : self

Returns a new clock instance set to the provided location.

Source
now

Returns the current time as determined by the clock.

Source
sleep(span : Time::Span) : Nil

Sleeps for the provided span of time.

Source