[][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.

Return: 0 on success, non-zero on failure