In Cargo.toml: ``` [dependencies] simple-timer = { git = 'https://github.com/hwchen/simple-timer-rs' }
```
In code: ```rust use simple_timer::timeit;
fn hello_world() { println!("hello world"); }
fn main() -> { timeit!("time1", helloworld()); timeit!("timetwo", { println!("great weather"); println!("i agree"); } ); let fortytwo = timeit!("three", 42); asserteq!(fortytwo, 42); } ```
MIT