Home
last modified time | relevance | path

Searched refs:tv_sec (Results 1 – 25 of 132) sorted by relevance

123456

/system/core/liblog/include/log/
Dlog_time.h27 #define LOG_TIME_SEC(t) ((t)->tv_sec)
37 uint32_t tv_sec = 0; /* good to Feb 5 2106 */
44 : tv_sec(static_cast<uint32_t>(T.tv_sec)), tv_nsec(static_cast<uint32_t>(T.tv_nsec)) {} in log_time()
46 : tv_sec(sec), tv_nsec(nsec) { in tv_sec() function
52 tv_sec = static_cast<uint32_t>(T.tv_sec); in log_time()
58 return (tv_sec == static_cast<uint32_t>(T.tv_sec)) &&
65 return (tv_sec < static_cast<uint32_t>(T.tv_sec)) ||
66 ((tv_sec == static_cast<uint32_t>(T.tv_sec)) &&
73 return (tv_sec > static_cast<uint32_t>(T.tv_sec)) ||
74 ((tv_sec == static_cast<uint32_t>(T.tv_sec)) &&
[all …]
/system/extras/tests/timetest/
Dtimetest.c22 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/
Dlog_time.cpp29 now = tv_sec; in strptime()
32 tv_sec = now; in strptime()
70 tv_sec = 0; in strptime()
72 tv_sec = tv_sec * 10 + *ret - '0'; in strptime()
75 now = tv_sec; in strptime()
116 tv_sec = mktime(ptm); in strptime()
125 tv_sec = now; in strptime()
Dlogprint.cpp503 entry->tv_sec = buf->sec; in android_log_processLogBuffer()
982 entry->tv_sec = buf->sec; in android_log_processBinaryLogBuffer()
1157 t->tv_sec = strtoul(e, &p, 10); in readSeconds()
1171 left->tv_sec += right->tv_sec; in sumTimespec()
1174 left->tv_sec += 1; in sumTimespec()
1182 result->tv_sec = left->tv_sec - right->tv_sec; in subTimespec()
1185 result->tv_sec -= 1; in subTimespec()
1191 return (long long)now->tv_sec * NS_PER_SEC + now->tv_nsec; in nsecTimespec()
1290 time.tv_sec = mktime(&tm); in convertMonotonic()
1307 ->tv_sec > 0) { in convertMonotonic()
[all …]
/system/extras/tests/lib/testUtil/
DtestUtil.c48 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/update_engine/common/
Dclock.cc38 now_tv.tv_sec = now_ts.tv_sec; in GetMonotonicTime()
53 now_tv.tv_sec = now_ts.tv_sec; in GetBootTime()
/system/extras/crypto-perf/
Dcrypto.cpp134 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/
Dsuspend_stress.cpp36 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/
Decho_reference.c123 er->wr_render_time.tv_sec = 0; in echo_reference_reset_l()
155 (int)buffer->time_stamp.tv_sec, in echo_reference_write()
161 if ((buffer->time_stamp.tv_sec == 0) && (buffer->time_stamp.tv_nsec == 0) && in echo_reference_write()
162 (er->wr_render_time.tv_sec == 0) && (er->wr_render_time.tv_nsec == 0)) { in echo_reference_write()
178 er->wr_render_time.tv_sec = buffer->time_stamp.tv_sec; in echo_reference_write()
280 (int)er->wr_render_time.tv_sec, (int)er->wr_render_time.tv_nsec, er->playback_delay); in echo_reference_write()
338 ts.tv_sec += timeoutMs/1000; in echo_reference_read()
342 ts.tv_sec += 1; in echo_reference_read()
356 if ((er->wr_render_time.tv_sec == 0 && er->wr_render_time.tv_nsec == 0) || in echo_reference_read()
357 (buffer->time_stamp.tv_sec == 0 && buffer->time_stamp.tv_nsec == 0)) { in echo_reference_read()
[all …]
/system/extras/tests/ext4/
Drand_emmc_perf.c78 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/
DCondition.h128 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/
Dlog_time.h36 #define LOG_TIME_SEC(t) ((t)->tv_sec)
41 uint32_t tv_sec; member
/system/bt/common/
Dtime_util.cc34 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()
Dtime_util_unittest.cc72 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/
Dschedtest.c37 long usec = (tv2.tv_sec - tv1.tv_sec) * 1000000 + tv2.tv_usec - tv1.tv_usec; in main()
/system/extras/simpleperf/runtest/
Drun_and_sleep.cpp12 return ts.tv_sec * 1000000000ULL + ts.tv_nsec; in GetSystemClock()
26 req.tv_sec = sleep_time_in_ns / 1000000000; in SleepFunction()
/system/core/libutils/
DTimers.cpp43 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec; in systemTime()
55 return nsecs_t(t.tv_sec)*1000000000LL + nsecs_t(t.tv_usec)*1000LL; in systemTime()
/system/security/keystore/
Dkeystore_keymaster_enforcement.h36 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/
Dmmap_test.c40 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()
Dpageinout_test.c90 (1024 * 1024 * (total_time_in.tv_sec * USEC_PER_SEC + total_time_in.tv_usec))); in pageinout_test()
93 (1024 * 1024 * (total_time_out.tv_sec * USEC_PER_SEC + total_time_out.tv_usec))); in pageinout_test()
/system/extras/tests/pftest/
Dpftest.c40 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/
Dclock.h106 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/
DIOEventLoop_test.cpp126 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/chre/platform/linux/
Dsystem_timer.cc33 ts->tv_sec = ns / kOneSecondInNanoseconds; in NanosecondsToTimespec()
112 isActive = (spec.it_value.tv_sec > 0 || spec.it_value.tv_nsec > 0); in isActive()
/system/core/libstats/socket/
Dstats_buffer_writer.c90 ts.tv_sec = tv.tv_sec; in __write_to_stats_daemon()

123456