Skip to main content

time

Function time 

Source
pub fn time() -> u64
Expand description

Returns the current timestamp in nanoseconds since the UNIX epoch.

This is a shorthand for ic_cdk::api::time useful for test in wasm32 environment.

§Example

let now = ic::api::time();