unix_system_time_resolution

Function unix_system_time_resolution 

Source
pub fn unix_system_time_resolution() -> Result<u128>
Expand description

Detect the resolution of the system clock in nanoseconds.

On POSIX systems, this queries clock_getres(CLOCK_REALTIME). On Windows, it assumes high-precision timer increments (100 ns). In fallback or virtualized environments, it computes the minimum non-zero delta across multiple bounded samples to avoid pegging the CPU.