| Crates.io | periodic_timer |
| lib.rs | periodic_timer |
| version | 0.1.1 |
| created_at | 2022-07-30 03:24:31.107313+00 |
| updated_at | 2022-07-30 03:26:29.161774+00 |
| description | simple Rust implementation of periodic timer. |
| homepage | |
| repository | https://github.com/keg66/periodic_timer |
| max_upload_size | |
| id | 635311 |
| size | 19,472 |
periodic_timer is a simple Rust implementation of periodic timer.
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();