Skip to main content

Module time

Module time 

Source
Expand description

Cross-platform clocks for elapsed time and calendar dates.

§Usage

Use Instant for animations and SystemTime for calendar features.

Structs§

Instant
A measurement of a monotonically nondecreasing clock. Opaque and useful only with Duration.
SystemTime
A measurement of the system clock, useful for talking to external entities like the file system or other processes.

Constants§

UNIX_EPOCH
An anchor in time which can be used to create new SystemTime instances or learn about where in time a SystemTime lies.