Module timer

Source
Expand description

Timer

Tools for interacting with low-level timers of the nspire.

Constants§

MICROSECONDS_PER_TICK
TICKS_PER_MILLISECOND
TICKS_PER_SECOND

Traits§

Ticks
Utilities to convert standard Rust Durations into Nspire ticks

Functions§

configure_sleep
Prepares the system for sleep. idle must be called to actually sleep.
disable_sleep
Resets the sleep timer so it may be used normally.
get_ticks
Returns the number of ticks since the program started, based on a 32768Hz timer (i.e. 32768 ticks per second).
has_time_passed
Detects if the number of ticks has passed yet