Struct libnotcurses_sys::c_api::ffi::timespec
source · #[repr(C)]pub struct timespec {
pub tv_sec: __time_t,
pub tv_nsec: __syscall_slong_t,
}Expand description
POSIX.1b structure for a time value. This is like a `struct timeval’ but has nanoseconds instead of microseconds.
Fields§
§tv_sec: __time_tSeconds.
tv_nsec: __syscall_slong_tNanoseconds.
Implementations§
Trait Implementations§
source§impl Ord for timespec
impl Ord for timespec
source§impl PartialEq<timespec> for timespec
impl PartialEq<timespec> for timespec
source§impl PartialOrd<timespec> for timespec
impl PartialOrd<timespec> for timespec
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more