pull-timer 0.1.2

A simple "pull" timer
Documentation
  • Coverage
  • 12.5%
    1 out of 8 items documented1 out of 8 items with examples
  • Size
  • Source code size: 5.84 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.46 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 15s 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.update(10);

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