1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
//! Asynchronous timers. //! //! This module provides a timer implementation which returns awaitable //! `Future`s. //! The timer can work with a configurable clock source. In order to utilize //! the system clock, a global instance `StdClock` can be utilized. mod clock; pub use self::clock::{ Clock, MockClock, }; #[cfg(feature = "std")] pub use self::clock::{ StdClock, }; mod timer; pub use self::timer::{ GenericTimerService, TimerFuture, Timer, LocalTimerService, }; #[cfg(feature = "std")] pub use self::timer::TimerService;