pull-timer 0.3.0

A simple "pull" timer
Documentation
  • Coverage
  • 12.5%
    1 out of 8 items documented1 out of 8 items with examples
  • Size
  • Source code size: 6.29 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.41 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 14s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • x-gkm/pull-timer
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • x-gkm

pull-timer

A simple "pull" timer.

Usage

use pull_timer::PullTimer;

let mut timer = PullTimer::new();
timer.add(10, "an event!");
assert_eq!(timer.poll(), None);

timer.tick(10);
assert_eq!(timer.poll(), Some("an event!"));