use crate::FromInner;
use uv::uv_timespec_t;
/// Portable equivalent of struct timespec
pub struct TimeSpec {
pub sec: i64,
pub nsec: i64,
}
impl FromInner<uv_timespec_t> for TimeSpec {
fn from_inner(ts: uv_timespec_t) -> TimeSpec {
TimeSpec {
sec: ts.tv_sec as _,
nsec: ts.tv_nsec as _,
}
}
}