[][src]Module float_duration::duration

Floating-point duration type FloatDuration and helpers.

Structs

FloatDuration

A time duration stored as a floating point quantity.

Constants

MICROS_PER_SEC

Number of microseconds in a second.

MILLIS_PER_SEC

Number of milliseconds in a second.

NANOS_PER_SEC

Number of nanoseconds in a second.

SECS_PER_DAY

Number of seconds in a day.

SECS_PER_HOUR

Number of seconds in an hour.

SECS_PER_MINUTE

Number of seconds in a minute.

SECS_PER_YEAR

Number of seconds in a year.

Traits

FromDuration

A fallible conversion from one duration representation to another.

IntoDuration

A fallible conversion that consumes self.

TimePoint

A specific point in time.