/// Return the number of ticks per second.
///
/// This isn't part of the proc file system, but it's a useful thing to have, since several fields
/// count in ticks.  This is calculated from `sysconf(_SC_CLK_TCK)`.
Return the number of ticks per second.
This isn't part of the proc file system, but it's a useful thing to have, since several fields
count in ticks.  This is calculated from `sysconf(_SC_CLK_TCK)`.
Return the number of ticks per second . This isn ' t part of the proc file system but it ' s a useful thing to have since several fields count in ticks . This is calculated from ` sysconf ( _SC_CLK_TCK ) ` .
pub fn ticks_per_second() -> std::io::Result<i64> {
    if cfg!(unix) {
        match unsafe { sysconf(_SC_CLK_TCK) } {
            -1 => Err(std::io::Error::last_os_error()),
            x => Ok(x.into()),
        }
    } else {
        panic!("Not supported on non-unix platforms")
    }
}
pub fn ticks_per_second ( ) -> std :: io :: Result < i64 > { if cfg ! ( unix ) { match unsafe { sysconf ( _SC_CLK_TCK ) } { - 1 => Err ( std :: io :: Error :: last_os_error ( ) ) , x => Ok ( x . into ( ) ) , } } else { panic ! ( " " ) } }
Return the number of ticks per second.
Return the number of ticks per second .