[−][src]Function sunrise_kernel::timer::wait_ns
pub fn wait_ns(ns: usize) -> impl Waitable
Returns a stream of event that trigger every ns
amount of nanoseconds.
Note
- If the timer resolution cannot handle it, this is not going to be accurate.
- Minimal resolution for HPET (10Mhz) / HPET QEMU (100Mhz): 100ns / 10ns
- Minimal resolution for PIC (~1Mhz): 10ms