[−][src]Function mynewt::kernel::os::os_gettimeofday
pub unsafe extern "C" fn os_gettimeofday(
utctime: *mut os_timeval,
tz: *mut os_timezone
) -> c_int
Get the current time of day. Returns the time of day in UTC into the tv argument, and returns the timezone (if set) into tz.
tv
: The structure to put the UTC time of day intotz
: The structure to put the timezone information into
Return: 0 on success, non-zero on failure