[go: up one dir, main page]

time 0.1.40

Utilities for working with time-related functions in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![feature(test)]

extern crate test;
extern crate time;

use test::Bencher;

#[bench]
fn bench_precise_time_ns(b: &mut Bencher) {
    b.iter(|| {
        time::precise_time_ns();
        time::precise_time_ns();
    });
}