ts_ 0.1.4

High-performance, lightweight time measurement library based on coarsetime. / 基于 coarsetime 的高性能轻量级时间测量库。
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use aok::{OK, Void};
use log::info;

#[static_init::constructor(0)]
extern "C" fn _log_init() {
  log_init::init();
}

#[test]
fn test() -> Void {
  #[cfg(feature = "nano")]
  info!("{}", ts_::nano());
  info!("{}", ts_::sec());
  OK
}