Module nyx_space::time::prelude

source ·

Structs

  • Defines generally usable durations for nanosecond precision valid for 32,768 centuries in either direction, and only on 80 bits / 10 octets.
  • Defines an Epoch in TAI (temps atomique international) in seconds past 1900 January 01 at midnight (like the Network Time Protocol).
  • An iterator of a sequence of evenly spaced Epochs.

Enums

  • An Enum to convert frequencies to their approximate duration, rounded to the closest nanosecond.

Traits

  • A trait to automatically convert some primitives to an approximate frequency as a duration, rounded to the closest nanosecond Does not support more than 1 GHz (because max precision of a duration is 1 nanosecond)
  • A trait to automatically convert some primitives to a duration