Skip to main content

Module time

Module time 

Source
Expand description

Module: cdk::utils::time

Responsibility: timestamp helpers that work under host and IC execution. Does not own: timer scheduling, lifecycle hooks, or clock policy. Boundary: exposes UNIX epoch timestamps at common precisions.

Functions§

now_micros
Returns the current UNIX epoch time in microseconds.
now_millis
Returns the current UNIX epoch time in milliseconds.
now_nanos
Returns the current UNIX epoch time in nanoseconds.
now_secs
Returns the current UNIX epoch time in seconds.