Home
last modified time | relevance | path

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

12

/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/extras/tests/icachetest/
Dicache_main.c22 t = (tm.tv_sec*1000000LL+tm.tv_usec) - (now.tv_sec*1000000LL+now.tv_usec); in main()
29 t = (tm.tv_sec*1000000LL+tm.tv_usec) - (now.tv_sec*1000000LL+now.tv_usec); in main()
/system/extras/tests/bionic/libc/other/
Dtest_timer_create3.c56 ts.it_value.tv_sec = 0; in handle()
58 ts.it_interval.tv_sec = 1; in handle()
82 ts.it_value.tv_sec = 0; in create()
84 ts.it_interval.tv_sec = seconds; in create()
Dtest_timer_create.c66 ts.it_value.tv_sec = 3; in create()
68 ts.it_interval.tv_sec = seconds; in create()
Dtest_timer_create2.c65 ts.it_value.tv_sec = 3; in create()
67 ts.it_interval.tv_sec = seconds; in create()
Dbench_locks.c11 return tv.tv_sec + tv.tv_usec/1000000.0; in now()
Dtest_thread_max.c57 ts.tv_sec = 0; in main()
Dtest_zlib.c165 return ts.tv_sec*1e6 + ts.tv_nsec*1e-3; in get_time_usec()
171 return tv.tv_sec*1000000. + tv.tv_usec*1.0; in get_time_usec()
Dtest_jpeg.c228 return ts.tv_sec*1e6 + ts.tv_nsec*1e-3; in get_time_usec()
234 return tv.tv_sec*1000000. + tv.tv_usec*1.0; in get_time_usec()
/system/core/toolbox/
Dpowerd.c298 tv.tv_sec = idle_time; in powerd_main()
302 tv.tv_sec = 0; in powerd_main()
329 tv.tv_sec = 60*60*24; in powerd_main()
361 len = sprintf(buf, "%ld%06lu000", event.time.tv_sec, event.time.tv_usec); in powerd_main()
365 tv.tv_sec = key_light_time; in powerd_main()
372 tv.tv_sec = idle_time; in powerd_main()
409 tv.tv_sec = idle_time - lcd_light_time; in powerd_main()
415 tv.tv_sec = lcd_light_time - key_light_time; in powerd_main()
424 tv.tv_sec = idle_time - lcd_light_time; in powerd_main()
429 … len = sprintf(buf, "%ld%06lu000", power_key_down_time.tv_sec, power_key_down_time.tv_usec); in powerd_main()
[all …]
Dalarm.c102 time(&tv.tv_sec); in alarm_main()
105 time(&ts.tv_sec); in alarm_main()
119 ts.tv_sec += strtol(argv[optind], NULL, 0); in alarm_main()
121 gmtime_r(&ts.tv_sec, &tm); in alarm_main()
122 printf("time %s -> %ld.%09ld\n", argv[optind], ts.tv_sec, ts.tv_nsec); in alarm_main()
Ddate.c36 ts.tv_sec = t; in settime()
115 printf("time %s -> %d.%d\n", argv[optind], tv.tv_sec, tv.tv_usec); in date_main()
117 ts.tv_sec = tv.tv_sec; in date_main()
Duptime.c69 return ts.tv_sec; in elapsedRealtime()
/system/extras/tests/sdcard/
Dstopwatch.cpp62 mStart.tv_sec = 0; in StopWatch()
136 long second = mData[i * 2].mTime.tv_sec - mStart.tv_sec; in sprint()
172 long second = mData[i + 1].mTime.tv_sec - mData[i].mTime.tv_sec; in processSamples()
211 double val = double(time.tv_nsec) / 1.0e9 + double(time.tv_sec); in timespecToDouble()
/system/extras/tests/schedtest/
Dschedtest.c36 long usec = (tv2.tv_sec - tv1.tv_sec) * 1000000 + tv2.tv_usec - tv1.tv_usec; in main()
/system/extras/tests/bionic/libc/common/
Dtest_pthread_getcpuclockid.c55 ts.tv_sec = 0; in thread_func()
60 …fprintf(stderr, "thread %08lx: clock_gettime() returned %g nsecs\n", self, ts.tv_sec*1e9 + ts.tv_n… in thread_func()
Dtest_pthread_once.c46 ts.tv_sec = 2; in once_function()
Dtest_pthread_mutex.c79 return (double)ts->tv_sec + ts->tv_nsec/1e9; in time_now()
88 ts.tv_sec = (time_t)delay; in time_sleep()
89 ts.tv_nsec = (long)((delay - ts.tv_sec)*1e9); in time_sleep()
/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/extras/tests/framebuffer/
Drefresh.c22 t.tv_sec = t.tv_nsec = 0; in systemTime()
24 return (int64_t)(t.tv_sec)*1000000000LL + t.tv_nsec; in systemTime()
/system/core/include/cutils/
Dlogprint.h44 time_t tv_sec; member
/system/core/nexus/
DWifiStatusPoller.cpp89 to.tv_sec = mPollingInterval; in run()
DWifiScanner.cpp85 to.tv_sec = mPeriod; in run()
/system/wlan/ti/sta_dk_4_0_4_32/CUDK/OAL/Pform/Linux/
DTILibLinux.cpp175 req.tv_sec = 0; in TISleep()
/system/extras/ext4_utils/
Dext4.h306 …node, raw_inode) do { (raw_inode)->xtime = cpu_to_le32((inode)->xtime.tv_sec); if (EXT4_FITS_…
307 …node, einode, xtime)) (raw_inode)->xtime = cpu_to_le32((einode)->xtime.tv_sec); if (EXT4_FITS_…
308 #define EXT4_INODE_GET_XTIME(xtime, inode, raw_inode) do { (inode)->xtime.tv_sec = (signed)le32_…
309 … { if (EXT4_FITS_IN_INODE(raw_inode, einode, xtime)) (einode)->xtime.tv_sec = (signed)le32_t…

12