gostd_time 1.0.7

Package time provides functionality for measuring and displaying time. time包提供了时间的显示和测量用的函数。日历的计算采用的是公历。
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use gostd_builtin::*;
pub fn monotonic_now() -> uint64 {
    inner::monotonic_now()
}

pub fn real_time_now() -> (uint64, uint64) {
    inner::real_time_now()
}

#[cfg(all(all(unix), not(target_os = "macos")))]
#[path = "sys/unix.rs"]
mod inner;

#[cfg(any(target_os = "macos", target_os = "ios"))]
#[path = "sys/darwin.rs"]
mod inner;