Timespec structv0.1.0

Source
A duration or an instant, as seconds and nanoseconds.
pub struct Timespec {
    pub seconds: int64;
    pub nanoseconds: int64;
}

nanoseconds is in [0, 999999999] for a value the kernel produced; a value the caller builds must normalize it, since a call given more than a second's worth reports EINVAL rather than carrying.

Fields

NameTypeDescription
secondsint64Whole seconds.
nanosecondsint64Nanoseconds within the second, in [0, 999999999].