Switch to wasm-timer (#1071)

This commit is contained in:
Pierre Krieger
2019-04-25 15:08:06 +02:00
committed by GitHub
parent 9a525d5dea
commit ce4ca3cc75
20 changed files with 36 additions and 33 deletions

View File

@ -23,7 +23,8 @@ use futures::{prelude::*, try_ready};
use lazy_static::lazy_static;
use parking_lot::Mutex;
use smallvec::{smallvec, SmallVec};
use std::{cmp, io, io::Read, io::Write, sync::Arc, time::Duration, time::Instant};
use std::{cmp, io, io::Read, io::Write, sync::Arc, time::Duration};
use wasm_timer::Instant;
/// Wraps around a `Transport` and logs the bandwidth that goes through all the opened connections.
#[derive(Clone)]