Crate periodic_timer
source · [−]Expand description
Simple Timer
periodic_timer is a simple implementation of periodic timer.
Usage
use periodic_timer::Timer;
// Prepare callback function to be periodically executed
let callback = || println!("hello timer!");
// Create new timer
let timer = Timer::new(1.0, callback);
// Start timer
timer.start();Structs
Simple implementation of periodic timer.