1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
//! `NcTime`

///
// Expected by [`notcurses_getc`] & [`notcurses_getc_nblock`], that can't use
// libc::timespec
pub type NcTime = crate::bindings::ffi::timespec;

impl NcTime {
    pub fn new() -> Self {
        Self {
            tv_sec: 0,
            tv_nsec: 0,
        }
    }
}