stopwatch

Crates.iostopwatch
lib.rsstopwatch
version0.0.7
sourcesrc
created_at2015-01-01 05:29:21.276159
updated_at2016-05-14 03:41:42.183381
descriptionA stopwatch library for timing things.
homepage
repositoryhttps://github.com/ellisonch/rust-stopwatch
max_upload_size
id675
size5,831
Chucky Ellison (ellisonch)

documentation

README

rust-stopwatch

This is a simple module used to time things in Rust.

Build Status

Example

extern crate stopwatch;
use stopwatch::{Stopwatch};
// ...
let sw = Stopwatch::start_new();
// do something that takes some time
println!("Thing took {}ms", sw.elapsed_ms());

Methods

fn new() -> Stopwatch
fn start_new() -> Stopwatch
fn start(&mut self)
fn stop(&mut self)
fn reset(&mut self)
fn restart(&mut self)
fn is_running(&self) -> bool
fn elapsed(&self) -> Duration
fn elapsed_ms(&self) -> i64
Commit count: 40

cargo fmt