[][src]Function linux::syscall::clock_gettime

pub fn clock_gettime(clock: clockid_t, res: &mut timespec) -> c_int

Retrieves the time of a clock.

[argument, clock] The id of the clock.

[argument, res] The place in which the time will be stored.

[return_value] Returns success or an error value.

= See also

  • link:man:clock_gettime(2)