took 0.1.2

Easily measure & report elapsed time
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use took::Timer;

pub fn main() {
    // Create the stopwatch, start automatically
    let took = Timer::new();

    // Simulate heavy task running 1 second
    std::thread::sleep(std::time::Duration::from_secs(1));

    // Report elapsed time in human readable format
    println!("Done! Took {}", took.took());
}