xarxa

Crates

git

Versions

default

Flavors

Skip to main content

Module time

Module time 

Source
Expand description

Time structures.

The time module contains structures used to represent both absolute and relative time.

  • Instant is used to represent absolute time.
  • Duration is used to represent relative time.

Both have microsecond resolution. Their accessors are named and behave like the ones on core::time::Duration: as_* returns the whole value, subsec_* returns only the part below one second.

Structsยง

Duration
A relative amount of time.
Instant
A representation of an absolute time value.