[][src]Trait sgx_tstd::untrusted::time::InstantEx

pub trait InstantEx {
    fn now() -> Instant;
fn elapsed(&self) -> Duration; }

Required methods

fn now() -> Instant

fn elapsed(&self) -> Duration

Loading content...

Implementors

impl InstantEx for Instant[src]

fn now() -> Instant[src]

Returns an instant corresponding to "now".

fn elapsed(&self) -> Duration[src]

Returns the amount of time elapsed since this instant was created.

Panics

This function may panic if the current time is earlier than this instant, which is something that can happen if an Instant is produced synthetically.

Loading content...