coarsetime
pub struct Updater { /* fields omitted */ }
A service to periodically call Instant::update()
Instant::update()
impl Updater
fn start(self) -> Result<Self, Error>
Spawns a background task to call Instant::update() periodically
fn stop(self) -> Result<(), Error>
Stops the periodic updates
fn new(period_millis: u64) -> Updater
Creates a new Updater with the specified update period, in milliseconds.
Updater