Expand description
Keep track of time, both in native and web platforms!
Structs§
- Duration
- A
Duration
type to represent a span of time, typically used for system timeouts. - Instant
- A measurement of a monotonically nondecreasing clock.
Opaque and useful only with
Duration
.
Functions§
- days
- Creates a
Duration
representing the given amount of days. - hours
- Creates a
Duration
representing the given amount of hours. - milliseconds
- Creates a
Duration
representing the given amount of milliseconds. - minutes
- Creates a
Duration
representing the given amount of minutes. - seconds
- Creates a
Duration
representing the given amount of seconds.