/periodic_timer

simple timer implementation for rust

Primary LanguageRustApache License 2.0Apache-2.0

Periodic Timer

periodic_timer is a simple Rust 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();