Module storm::time

source · []
Expand description

Time utilities.

Constants

A const duration representing a microsecond.

The number of microseconds per second.

A const duration representing a millisecond.

The number of milliseconds per second.

A const duration representing a nanosecond.

The number of nanoseconds per microsecond.

The number of nanoseconds per millisecond.

The number of nanoseconds per second.

A const duration representing a second.

The number of (non-leap) seconds in days.

The number of seconds per hour.

The number of seconds per minute.

Functions

Converts a duration into a number of days, rounding down.

Converts a duration into a number of hours, rounding down.

Converts a duration into a number of microseconds, rounding down.

Converts a duration into a number of milliseconds, rounding down.

Converts a duration into a number of minutes, rounding down.

Converts a duration into a number of nanoseconds, rounding down.

Converts a duration into a number of seconds, rounding down.

Returns an instant corresponding to “now”.

Type Definitions

A measurement of a monotonically nondecreasing clock. Opaque and useful only with Duration.