time-clock
Returns the processor time consumed by the program.
Usage
Add this to your Cargo.toml
:
[]
= "*"
use Duration;
use thread;
let start = clock;
sleep;
let end = clock;
println!;
println!;
assert!
Returns the processor time consumed by the program.
Add this to your Cargo.toml
:
[]
= "*"
use Duration;
use thread;
let start = clock;
sleep;
let end = clock;
println!;
println!;
assert!