Home
last modified time | relevance | path

Searched refs:monotonic_time (Results 1 – 2 of 2) sorted by relevance

/bionic/libc/bionic/
Dbionic_time_conversions.cpp55 void monotonic_time_from_realtime_time(timespec& monotonic_time, const timespec& realtime_time) { in monotonic_time_from_realtime_time() argument
56 monotonic_time = realtime_time; in monotonic_time_from_realtime_time()
63 monotonic_time.tv_nsec -= cur_realtime_time.tv_nsec; in monotonic_time_from_realtime_time()
64 monotonic_time.tv_nsec += cur_monotonic_time.tv_nsec; in monotonic_time_from_realtime_time()
65 if (monotonic_time.tv_nsec >= NS_PER_S) { in monotonic_time_from_realtime_time()
66 monotonic_time.tv_nsec -= NS_PER_S; in monotonic_time_from_realtime_time()
67 monotonic_time.tv_sec += 1; in monotonic_time_from_realtime_time()
68 } else if (monotonic_time.tv_nsec < 0) { in monotonic_time_from_realtime_time()
69 monotonic_time.tv_nsec += NS_PER_S; in monotonic_time_from_realtime_time()
70 monotonic_time.tv_sec -= 1; in monotonic_time_from_realtime_time()
[all …]
/bionic/libc/private/
Dbionic_time_conversions.h45 __LIBC_HIDDEN__ void monotonic_time_from_realtime_time(timespec& monotonic_time,