Home
last modified time | relevance | path

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

/system/update_engine/common/
Dclock.cc37 struct timeval now_tv; in GetMonotonicTime() local
38 now_tv.tv_sec = now_ts.tv_sec; in GetMonotonicTime()
39 now_tv.tv_usec = now_ts.tv_nsec/base::Time::kNanosecondsPerMicrosecond; in GetMonotonicTime()
40 return base::Time::FromTimeVal(now_tv); in GetMonotonicTime()
52 struct timeval now_tv; in GetBootTime() local
53 now_tv.tv_sec = now_ts.tv_sec; in GetBootTime()
54 now_tv.tv_usec = now_ts.tv_nsec/base::Time::kNanosecondsPerMicrosecond; in GetBootTime()
55 return base::Time::FromTimeVal(now_tv); in GetBootTime()
/system/media/audio_utils/include/audio_utils/
Dclock.h107 struct timeval now_tv; in audio_utils_get_real_time_ns()
108 if (gettimeofday(&now_tv, NULL /* struct timezone * */) == 0) { in audio_utils_get_real_time_ns()
109 return now_tv.tv_sec * 1000000000LL + now_tv.tv_usec * 1000LL; in audio_utils_get_real_time_ns()