[][src]Module rusty_sword_arena::timer

A timer module for general use

Structs

Timer

Doing math with std::time::Duration is sort of a pain, so this wraps it up in an easy package. Create a timer set how you like it, call .update(delta) with a delta duration each time around the main loop, check .ready to see if the timer has gone off, and call .reset() to start over.