Searched refs:NANOS_PER_SEC (Results 1 – 1 of 1) sorted by relevance
143 const NANOS_PER_SEC: u64 = 1_000_000_000; constant562 let timer_len = Duration::from_nanos(u64::from(self.count) * NANOS_PER_SEC / FREQUENCY_HZ); in start_timer()693 let dur_ns: u64 = dur.as_secs() * NANOS_PER_SEC + u64::from(dur.subsec_nanos()); in get_ticks_passed()694 (dur_ns * FREQUENCY_HZ / NANOS_PER_SEC) in get_ticks_passed()852 (NANOS_PER_SEC * ticks) / FREQUENCY_HZ + 1 in advance_by_ticks()855 lock.add_ns((NANOS_PER_SEC * ticks) / FREQUENCY_HZ + 1); in advance_by_ticks()990 0xffff - ((25_000_000 * FREQUENCY_HZ) / NANOS_PER_SEC) as u16, in test_timed_latch()