/system/core/liblog/include/log/ |
D | log_time.h | 30 #define LOG_TIME_SEC(t) ((t)->tv_sec) 45 uint32_t tv_sec = 0; /* good to Feb 5 2106 */ 54 : tv_sec(static_cast<uint32_t>(T.tv_sec)), tv_nsec(static_cast<uint32_t>(T.tv_nsec)) {} in log_time() 56 : tv_sec(sec), tv_nsec(nsec) { in tv_sec() function 62 tv_sec = static_cast<uint32_t>(T.tv_sec); in log_time() 68 tv_sec = c[0] | (static_cast<uint32_t>(c[1]) << 8) | in log_time() 78 return (tv_sec == static_cast<uint32_t>(T.tv_sec)) && 85 return (tv_sec < static_cast<uint32_t>(T.tv_sec)) || 86 ((tv_sec == static_cast<uint32_t>(T.tv_sec)) && 93 return (tv_sec > static_cast<uint32_t>(T.tv_sec)) || [all …]
|
/system/extras/tests/timetest/ |
D | timetest.c | 22 return (((long long) t.tv_sec) * 1000000000LL) + in nanotime() 29 r.tv_sec = a.tv_sec - b.tv_sec; in ts_sub() 32 r.tv_sec--; in ts_sub() 35 if(r.tv_sec < 0 && r.tv_nsec > 0) { in ts_sub() 36 r.tv_sec++; in ts_sub() 44 if(a.tv_sec < b.tv_sec || (a.tv_sec == b.tv_sec && a.tv_nsec < b.tv_nsec)) in ts_min() 52 if(a.tv_sec < b.tv_sec || (a.tv_sec == b.tv_sec && a.tv_nsec < b.tv_nsec)) in ts_max() 65 dtmin.tv_sec = INT_MAX; in main() 67 dtminp.tv_sec = INT_MAX; in main() 69 dtmax.tv_sec = 0; in main() [all …]
|
/system/core/liblog/ |
D | log_time.cpp | 35 now = tv_sec; in strptime() 38 tv_sec = now; in strptime() 76 tv_sec = 0; in strptime() 78 tv_sec = tv_sec * 10 + *ret - '0'; in strptime() 81 now = tv_sec; in strptime() 122 tv_sec = mktime(ptm); in strptime() 131 tv_sec = now; in strptime() 144 --this->tv_sec; in operator -=() 149 this->tv_sec -= T.tv_sec; in operator -=() 158 ++this->tv_sec; in operator +=() [all …]
|
D | logprint.cpp | 500 entry->tv_sec = buf->sec; in android_log_processLogBuffer() 1007 entry->tv_sec = buf->sec; in android_log_processBinaryLogBuffer() 1249 t->tv_sec = strtoul(e, &p, 10); in readSeconds() 1263 left->tv_sec += right->tv_sec; in sumTimespec() 1266 left->tv_sec += 1; in sumTimespec() 1274 result->tv_sec = left->tv_sec - right->tv_sec; in subTimespec() 1277 result->tv_sec -= 1; in subTimespec() 1283 return (long long)now->tv_sec * NS_PER_SEC + now->tv_nsec; in nsecTimespec() 1383 time.tv_sec = mktime(&tm); in convertMonotonic() 1400 ->tv_sec > 0) { in convertMonotonic() [all …]
|
/system/extras/tests/lib/testUtil/ |
D | testUtil.c | 48 rv = val->tv_sec; in ts2double() 59 rv = val->tv_sec; in tv2double() 70 rv.tv_sec = floor(amt); in double2ts() 71 rv.tv_nsec = (amt - rv.tv_sec) * nSecsPerSec; in double2ts() 75 rv.tv_sec++; in double2ts() 86 rv.tv_sec = floor(amt); in double2tv() 87 rv.tv_usec = (amt - rv.tv_sec) * uSecsPerSec; in double2tv() 91 rv.tv_sec++; in double2tv() 109 rv.tv_sec = second->tv_sec - first->tv_sec; in tsDelta() 114 rv.tv_sec--; in tsDelta() [all …]
|
/system/core/libutils/ |
D | Timers.cpp | 36 t.tv_sec = t.tv_nsec = 0; in systemTime() 38 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec; in systemTime() 47 t.tv_sec = t.tv_usec = 0; in systemTime() 49 return nsecs_t(t.tv_sec)*1000000000LL + nsecs_t(t.tv_usec)*1000LL; in systemTime()
|
/system/update_engine/common/ |
D | clock.cc | 38 now_tv.tv_sec = now_ts.tv_sec; in GetMonotonicTime() 53 now_tv.tv_sec = now_ts.tv_sec; in GetBootTime()
|
/system/core/logd/ |
D | LogBuffer.h | 49 if (mono.tv_sec >= EPOCH_PLUS_2_YEARS) { in isMonotonic() 56 if (now.tv_sec >= EPOCH_PLUS_2_YEARS) { in isMonotonic() 61 if (now.tv_sec < EPOCH_PLUS_MINUTE) { in isMonotonic() 67 if ((cpu.tv_sec + EPOCH_PLUS_MINUTE) >= now.tv_sec) { in isMonotonic() 72 return mono.tv_sec < ((cpu.tv_sec + now.tv_sec) / 2); in isMonotonic()
|
D | LogTimes.cpp | 44 mTimeout.tv_sec = timeout / NS_PER_SEC; in LogTimeEntry() 87 if (me->mTimeout.tv_sec || me->mTimeout.tv_nsec) { in threadStart() 90 me->mTimeout.tv_sec = 0; in threadStart() 122 if (!me->mTimeout.tv_sec && !me->mTimeout.tv_nsec) { in threadStart()
|
/system/extras/crypto-perf/ |
D | crypto.cpp | 134 elapsed_time.tv_sec * USEC_PER_SEC + elapsed_time.tv_usec); in main() 139 (elapsed_time.tv_sec * USEC_PER_SEC + elapsed_time.tv_usec)); in main() 143 ((elapsed_time.tv_sec * USEC_PER_SEC + elapsed_time.tv_usec) * in main() 157 elapsed_time.tv_sec * USEC_PER_SEC + elapsed_time.tv_usec); in main() 162 (elapsed_time.tv_sec * USEC_PER_SEC + elapsed_time.tv_usec)); in main() 166 ((elapsed_time.tv_sec * USEC_PER_SEC + elapsed_time.tv_usec) * in main()
|
/system/extras/tests/suspend_stress/ |
D | suspend_stress.cpp | 36 return ((long long)(a->tv_sec - b->tv_sec)) * NSEC_PER_SEC + in timediff_ns() 100 delay.it_value.tv_sec = alarm_time; in main() 133 expected_time.tv_sec += alarm_time; in main() 181 (long long)actual_time.tv_sec, in main() 186 (long long)actual_time.tv_sec, in main()
|
/system/media/audio_utils/ |
D | echo_reference.c | 122 er->wr_render_time.tv_sec = 0; in echo_reference_reset_l() 154 (int)buffer->time_stamp.tv_sec, in echo_reference_write() 160 if ((buffer->time_stamp.tv_sec == 0) && (buffer->time_stamp.tv_nsec == 0) && in echo_reference_write() 161 (er->wr_render_time.tv_sec == 0) && (er->wr_render_time.tv_nsec == 0)) { in echo_reference_write() 177 er->wr_render_time.tv_sec = buffer->time_stamp.tv_sec; in echo_reference_write() 279 (int)er->wr_render_time.tv_sec, (int)er->wr_render_time.tv_nsec, er->playback_delay); in echo_reference_write() 337 ts.tv_sec += timeoutMs/1000; in echo_reference_read() 341 ts.tv_sec += 1; in echo_reference_read() 355 if ((er->wr_render_time.tv_sec == 0 && er->wr_render_time.tv_nsec == 0) || in echo_reference_read() 356 (buffer->time_stamp.tv_sec == 0 && buffer->time_stamp.tv_nsec == 0)) { in echo_reference_read() [all …]
|
/system/extras/tests/ext4/ |
D | rand_emmc_perf.c | 78 fprintf(full_stats, "%lld\n", (t.tv_sec * 1000000LL) + t.tv_usec); in print_stats() 87 max_usecs = (max.tv_sec * 1000000LL) + max.tv_usec; in print_stats() 88 total_usecs = (sum.tv_sec * 1000000LL) + sum.tv_usec; in print_stats() 101 x = (t.tv_sec * 1000000LL) + t.tv_usec; /* Convert to long long */ in print_stats() 153 res.tv_sec = 0; in perf_test() 155 while (res.tv_sec < TEST_LEN) { in perf_test() 179 msecs = (res.tv_sec * 1000) + (res.tv_usec / 1000); in perf_test()
|
/system/core/libutils/include/utils/ |
D | Condition.h | 128 ts.tv_sec = t.tv_sec; in waitRelative() 141 int64_t time_sec = ts.tv_sec; in waitRelative() 148 ts.tv_sec = (time_sec > LONG_MAX) ? LONG_MAX : static_cast<long>(time_sec); in waitRelative()
|
/system/core/liblog/include_vndk/log/ |
D | log_time.h | 36 #define LOG_TIME_SEC(t) ((t)->tv_sec) 41 uint32_t tv_sec; member
|
/system/bt/common/ |
D | time_util.cc | 34 return ((uint64_t)ts_now.tv_sec * 1000000L) + in time_get_os_boottime_us() 41 return static_cast<uint64_t>(tv.tv_sec) * 1000000ULL + in time_gettimeofday_us()
|
D | time_util_unittest.cc | 72 delay.tv_sec = TEST_TIME_SLEEP_MS / 1000; in TEST() 93 delay.tv_sec = TEST_TIME_SLEEP_US / (1000 * 1000); in TEST() 134 delay.tv_sec = TEST_TIME_SLEEP_US / (1000 * 1000); in TEST()
|
/system/extras/tests/schedtest/ |
D | schedtest.c | 37 long usec = (tv2.tv_sec - tv1.tv_sec) * 1000000 + tv2.tv_usec - tv1.tv_usec; in main()
|
/system/extras/simpleperf/runtest/ |
D | run_and_sleep.cpp | 12 return ts.tv_sec * 1000000000ULL + ts.tv_nsec; in GetSystemClock() 26 req.tv_sec = sleep_time_in_ns / 1000000000; in SleepFunction()
|
/system/security/keystore/ |
D | keystore_keymaster_enforcement.h | 36 if (err || tp.tv_sec < 0) in get_current_time() 38 return static_cast<uint32_t>(tp.tv_sec); in get_current_time()
|
/system/extras/tests/pagingtest/ |
D | mmap_test.c | 40 printf("mmap: %llu us\n", total_time_mmap.tv_sec * USEC_PER_SEC + total_time_mmap.tv_usec); in mmap_test() 41 … printf("munmap: %llu us\n", total_time_munmap.tv_sec * USEC_PER_SEC + total_time_munmap.tv_usec); in mmap_test()
|
/system/extras/tests/pftest/ |
D | pftest.c | 40 t.tv_sec = t.tv_nsec = 0; in stop_watch() 42 return t.tv_sec*1000000000ULL + t.tv_nsec; in stop_watch()
|
/system/media/audio_utils/include/audio_utils/ |
D | clock.h | 106 return ts->tv_sec * 1000000000LL + ts->tv_nsec; in audio_utils_ns_from_timespec() 128 return now_tv.tv_sec * 1000000000LL + now_tv.tv_usec * 1000LL; in audio_utils_get_real_time_ns()
|
/system/extras/simpleperf/ |
D | IOEventLoop_test.cpp | 126 tv.tv_sec = period_in_us / 1000000; in TestPeriodicEvents() 196 tv.tv_sec = 0; in TEST() 223 tv.tv_sec = 0; in TEST() 230 tv.tv_sec = 0; in TEST()
|
/system/core/lmkd/ |
D | statslog.c | 25 t.tv_sec = t.tv_nsec = 0; in getElapsedRealTimeNs() 27 return (int64_t)t.tv_sec * 1000000000LL + t.tv_nsec; in getElapsedRealTimeNs()
|