time-clock 0.1.0

Clock program
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use core::time::Duration;
use std::thread;

#[test]
fn base() {
    let start = time_clock::clock();
    thread::sleep(Duration::from_millis(100));
    let end = time_clock::clock();
    println!("start: {:?}", start);
    println!("end: {:?}", end);

    assert!((end - start) / time_clock::CLOCKS_PER_MILLI > 100)
}