Timespec structv0.1.0
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
| Name | Type | Description |
|---|---|---|
seconds | int64 | Whole seconds. |
nanoseconds | int64 | Nanoseconds within the second, in [0, 999999999]. |