pub fn time() -> u64Expand 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();