diff --git a/Cargo.toml b/Cargo.toml index 4e6267b..26b13cb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,6 +17,7 @@ rustdoc-args = ["--cfg", "docsrs"] [dependencies] ctor = "0.1.20" coarsetime = "0.1" +web-time = "1.0" [features] atomic = [] diff --git a/src/instant.rs b/src/instant.rs index 9ae2726..dd54e0e 100644 --- a/src/instant.rs +++ b/src/instant.rs @@ -2,8 +2,9 @@ use std::{ ops::{Add, AddAssign, Sub, SubAssign}, - time::{Duration, SystemTime, UNIX_EPOCH}, + time::Duration, }; +use web_time::{SystemTime, UNIX_EPOCH}; /// A measurement of a monotonically nondecreasing clock. Similar to /// [`std::time::Instant`](std::time::Instant) but is faster and more