Timer

Build Status

Simple implementation of a Timer in and for Rust.

Example

```rust extern crate timer; extern crate time; use std::sync::mpsc::channel;

let timer = timer::Timer::new(); let (tx, rx) = channel();

timer.schedulewithdelay(time::Duration::seconds(3), move || { tx.send(()).unwrap(); });

rx.recv().unwrap(); println!("This code has been executed after 3 seconds"); ```