CnxDuration struct

CnxDuration represents a duration in a particular unit of time A CnxDuration occurs in a particular unit of time (e.g. seconds, nanoseconds, or years), and can represent a positive or negative amount of that unit

Public variables

i64 count
The length of the duration.
CnxRatio period
The unit of the duration as a CnxRatio For example, for a CnxDuration in milliseconds, the period would be cnx_milli or cnx_milliseconds_period