sys_gettimeofday

Function sys_gettimeofday 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn sys_gettimeofday( tp: *mut timeval, tz: usize, ) -> i32
Expand description

Get the system’s clock time.

This function gets the current time based on the wallclock time when booted up, plus current timer ticks. Returns 0 on success, -EINVAL otherwise.

Parameter tz should be set to 0 since tz is obsolete.