mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-17 00:00:11 +02:00
11 lines
250 B
Rust
11 lines
250 B
Rust
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 crate::clock::Clock as SystemNow;
|