Skip to main content

timespec_getres

Function timespec_getres 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn timespec_getres( res: *mut timespec, base: c_int, ) -> c_int
Expand description

ISO C equivalent to Sys::clock_getres.

The main differences are that this function:

  • returns 0 on error and base on success
  • only mandates TIME_UTC as a base