Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 325 Bytes

README.markdown

File metadata and controls

18 lines (14 loc) · 325 Bytes

A small, simple named timer library.

Example usage:

extern crate stopwatch;

fn main() {
  let ts = stopwatch::TimerSet::new();
  ts.time("hello", || {
    for _ in 0..100 {
      ts.time("world", || {
        std::thread::sleep_ms(1);
      });
    }
  });

  ts.print();
}