run_every
Run some code up to once per specified duration.
Example:
use run_every;
for _ in 0..1000
A block of code can also be used:
run_every!;
The implementation uses a combination of a global mutex and thread local storage to reduce contention.