6 releases

✓ Uses Rust 2018 edition

new 0.2.2 May 22, 2020
0.2.1 Nov 21, 2019
0.2.0 Sep 22, 2019
0.1.2 Aug 26, 2019

#55 in Date and time

Download history 11/week @ 2020-01-24 7/week @ 2020-01-31 16/week @ 2020-02-07 24/week @ 2020-02-14 23/week @ 2020-02-21 20/week @ 2020-02-28 15/week @ 2020-03-06 9/week @ 2020-03-13 19/week @ 2020-03-20 12/week @ 2020-03-27 12/week @ 2020-04-03 26/week @ 2020-04-10 29/week @ 2020-04-17 9/week @ 2020-04-24 14/week @ 2020-05-01 7/week @ 2020-05-08

66 downloads per month
Used in greenie

MIT license

16KB
251 lines


Simple and efficient timer abstraction on top of mio-extra. Every timer is associated with a callback which is executed whenever the timer expires, timers can be stopped and reset, in which case the callback might be executed multiple times. The primary intended application is one in which timers have a bounded maximum duration (e.g. at most 10 minutes) and have to be cancelled and restarted very often.

Dependencies

~605KB
~11K SLoC