Searched refs:new_time (Results 1 – 1 of 1) sorted by relevance
55 static void convert_timespec_clocks(timespec& new_time, clockid_t new_clockbase, in convert_timespec_clocks() argument64 new_time.tv_sec = old_time.tv_sec - old_clock.tv_sec + new_clock.tv_sec; in convert_timespec_clocks()65 new_time.tv_nsec = old_time.tv_nsec - old_clock.tv_nsec + new_clock.tv_nsec; in convert_timespec_clocks()68 if (new_time.tv_nsec >= NS_PER_S) { in convert_timespec_clocks()69 new_time.tv_nsec -= NS_PER_S; in convert_timespec_clocks()70 new_time.tv_sec += 1; in convert_timespec_clocks()71 } else if (new_time.tv_nsec < 0) { in convert_timespec_clocks()72 new_time.tv_nsec += NS_PER_S; in convert_timespec_clocks()73 new_time.tv_sec -= 1; in convert_timespec_clocks()