Skip to main content

now

Function now 

Source
pub fn now() -> Instant
Expand description

Returns the current time of the clock of the app that owns the code running right now, or the system time when no app does.

Handlers run inside the owner of their node, so input handlers read the app’s time this way, which makes double click detection and other timing testable with a virtual clock.