Sha256: 7f2eed430304c19b86d108d9cdea61b415246b5c622f1739c67ebf7aa400fd91
Contents?: true
Size: 298 Bytes
Versions: 42
Compression:
Stored size: 298 Bytes
Contents
use crate::cvt::cvt; use std::io; use windows_sys::Win32::System::Performance::QueryPerformanceFrequency; pub fn perf_counter_frequency() -> io::Result<u64> { unsafe { let mut frequency = 0; cvt(QueryPerformanceFrequency(&mut frequency))?; Ok(frequency as u64) } }
Version data entries
42 entries across 38 versions & 1 rubygems