Async and sync intervals that are synced to the real-time-clock.
That means e.g. a 10-second interval will fire at 00:00:00, 00:00:10, 00:00:20, etc. instead of 10 seconds after the interval was started.
Note: for intervals shorter than 1 second does not sync to the real-time-clock, working as a regular interval only.
Examples
Sync
use RtcInterval;
use Duration;
let mut interval = new;
loop
Async
use AsyncRtcInterval;
use Duration;
let mut interval = new;
loop