A mio wrapper for linux's timerfd feature. For linux-specific software this is likely the easiest (and probably most performant, but I'm not benchmarking) way to get asynchronous timers into your code.
```rust let poll = Poll::new().unwrap(); let mut events = Events::withcapacity(1024); let mut timer = TimerFd::new(ClockId::Monotonic).unwrap(); timer.settimeoutinterval(&Duration::frommillis(10)).unwrap(); poll.register(&timer, Token(0), Ready::readable(), PollOpt::edge()) .unwrap();
// effectively sleeps the thread for 10ms poll.poll(&mut events, None).unwrap(); assert!(timer.read().unwrap() == 1); ```