use futures_stats::{Timed, TimedStreamTrait};

fn main() {
    let mut runtime = tokio_old::runtime::Runtime::new().unwrap();
    let fut = future::lazy(|| {
        println!("future polled");
        Ok(())
    })
    .timed(|stats, _: Result<&(), &()>| {
        println!("{:#?}", stats);
        Ok(())
    });