Skip to main content

now

Function now 

Source
pub fn now<I: Io>() -> Duration
Expand description

Retrieves the current duration since the epoch start start from I/O. The type parameter I must match the Io implementation this runtime was initialized with.

§Panics

Panics if called outside of an active runtime or if I does not match the runtime’s I/O type.