summaryrefslogtreecommitdiffstats
path: root/third_party/rust/tokio-timer/src/timer/now.rs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/tokio-timer/src/timer/now.rs')
-rw-r--r--third_party/rust/tokio-timer/src/timer/now.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/third_party/rust/tokio-timer/src/timer/now.rs b/third_party/rust/tokio-timer/src/timer/now.rs
new file mode 100644
index 0000000000..9f23bad711
--- /dev/null
+++ b/third_party/rust/tokio-timer/src/timer/now.rs
@@ -0,0 +1,10 @@
+use std::time::Instant;
+
+#[doc(hidden)]
+#[deprecated(since = "0.2.4", note = "use clock::Now instead")]
+pub trait Now {
+ /// Returns an instant corresponding to "now".
+ fn now(&mut self) -> Instant;
+}
+
+pub use clock::Clock as SystemNow;