Skip to main content

SYS_CLOCK_GETTIME

Constant SYS_CLOCK_GETTIME 

Source
pub const SYS_CLOCK_GETTIME: usize = 500;
Expand description

Get the current time of a clock.

  • clock_id: clock identifier (CLOCK_REALTIME, CLOCK_MONOTONIC, etc.)
  • tp_ptr: pointer to a Timespec struct to receive the time

Returns 0 on success.