Skip to content

bfops/stopwatch-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();
}

About

Small, simple named timer library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages