/external/linux-kselftest/tools/testing/selftests/timers/ |
D | valid-adjtimex.c | 38 #define USEC_PER_SEC 1000000LL macro 213 tmx.time.tv_sec = offset / USEC_PER_SEC; in set_offset() 214 tmx.time.tv_usec = offset % USEC_PER_SEC; in set_offset() 218 tmx.time.tv_usec += USEC_PER_SEC; in set_offset() 277 if (set_offset(USEC_PER_SEC - 1, 0)) in validate_set_offset() 280 if (set_offset(-USEC_PER_SEC + 1, 0)) in validate_set_offset() 283 if (set_offset(-USEC_PER_SEC - 1, 0)) in validate_set_offset() 286 if (set_offset(5 * USEC_PER_SEC, 0)) in validate_set_offset() 289 if (set_offset(-5 * USEC_PER_SEC, 0)) in validate_set_offset() 292 if (set_offset(5 * USEC_PER_SEC + USEC_PER_SEC / 2, 0)) in validate_set_offset() [all …]
|
D | adjtick.c | 31 #define USEC_PER_SEC 1000000 macro 184 systick = USEC_PER_SEC/sysconf(_SC_CLK_TCK); in main()
|
/external/ltp/utils/ffsb-6.0-rc2/ |
D | main.c | 220 #define USEC_PER_SEC ((double)(1000000.0f)) in main() macro 224 ((after_self.ru_utime.tv_usec) / USEC_PER_SEC)) + in main() 226 ((after_children.ru_utime.tv_usec) / USEC_PER_SEC))); in main() 230 ((before_self.ru_utime.tv_usec) / USEC_PER_SEC)) + in main() 232 ((before_children.ru_utime.tv_usec) / USEC_PER_SEC))); in main() 236 ((after_self.ru_stime.tv_usec) / USEC_PER_SEC)) + in main() 238 ((after_children.ru_stime.tv_usec) / USEC_PER_SEC))); in main() 242 ((before_self.ru_stime.tv_usec) / USEC_PER_SEC)) + in main() 244 ((before_children.ru_stime.tv_usec) / USEC_PER_SEC))); in main()
|
/external/ltp/testcases/kernel/sched/eas/ |
D | sched_boost.c | 42 #define TEST_LENGTH_USEC USEC_PER_SEC 53 now_usec = ts.tv_sec * USEC_PER_SEC + ts.tv_nsec / 1000; in do_work() 63 now_usec = ts.tv_sec * USEC_PER_SEC + ts.tv_nsec / 1000; in do_work() 144 TEST_LENGTH_USEC / USEC_PER_SEC); in run()
|
D | sugov_latency.c | 178 increase_latency_usec = trace[max_freq_seen_idx].ts.sec * USEC_PER_SEC + in parse_results() 180 increase_latency_usec -= trace[start_idx].ts.sec * USEC_PER_SEC + in parse_results() 183 decrease_latency_usec = trace[min_freq_seen_idx].ts.sec * USEC_PER_SEC + in parse_results() 185 decrease_latency_usec -= trace[sleep_idx].ts.sec * USEC_PER_SEC + in parse_results()
|
D | util.h | 14 #define USEC_PER_SEC 1000000 macro 16 #define TS_TO_USEC(x) (x.usec + x.sec * USEC_PER_SEC)
|
D | sched_dl_runtime.c | 61 now_usec = (ts.tv_sec) * USEC_PER_SEC + (ts.tv_nsec / 1000); in dl_fn() 62 end_usec = now_usec + 3 * USEC_PER_SEC; in dl_fn() 74 now_usec = (ts.tv_sec) * USEC_PER_SEC + (ts.tv_nsec / 1000); in dl_fn()
|
D | eas_small_to_big.c | 36 burn(BURN_SEC * USEC_PER_SEC, 1); in task_fn() 40 burn(BURN_SEC * USEC_PER_SEC, 0); in task_fn()
|
D | util.c | 43 end_usec = (ts.tv_sec) * USEC_PER_SEC + (ts.tv_nsec / 1000) + usec; in burn() 49 now_usec = ts.tv_sec * USEC_PER_SEC + ts.tv_nsec / 1000; in burn()
|
D | sched_cfs_prio.c | 47 burn(TEST_TASK_SECONDS * USEC_PER_SEC, 0); in task_fn() 148 expected_us[i] = TEST_TASK_SECONDS * USEC_PER_SEC; in parse_results()
|
D | eas_small_big_toggle.c | 40 burn(BURN_SEC * USEC_PER_SEC, 1); in task_fn() 43 burn(BURN_SEC * USEC_PER_SEC, 0); in task_fn()
|
D | eas_one_small_task.c | 33 burn(BURN_SEC * USEC_PER_SEC, 1); in task_fn()
|
D | eas_one_big_task.c | 35 burn(BURN_SEC * USEC_PER_SEC, 0); in task_fn()
|
D | sched_latency_rt.c | 49 burn(USEC_PER_SEC, 0); in cfs_fn()
|
D | eas_two_big_three_small.c | 35 burn(BURN_SEC * USEC_PER_SEC, id < 3 ? 1 : 0); in task_fn()
|
D | sched_latency_dl.c | 67 burn(USEC_PER_SEC, 0); in cfs_fn()
|
/external/ltp/testcases/kernel/syscalls/settimeofday/ |
D | settimeofday01.c | 67 #define USEC_PER_SEC 1000000L macro 96 if (tp.tv_usec >= USEC_PER_SEC) in main()
|
/external/walt/ios/WALT/ |
D | WALTClient.m | 56 return ((int64_t)ts.tv_sec) * USEC_PER_SEC + ts.tv_nsec / NSEC_PER_USEC; 69 .tv_sec = (long)(us / USEC_PER_SEC), 70 .tv_nsec = (us % USEC_PER_SEC) * NSEC_PER_USEC, 549 return ((NSTimeInterval)microseconds + _sync.base) / USEC_PER_SEC; 568 result.t = ((NSTimeInterval)microseconds + _sync.base) / USEC_PER_SEC; 581 return ((NSTimeInterval)_sync.base) / USEC_PER_SEC; 585 return ((NSTimeInterval)CurrentTime(_clock)) / USEC_PER_SEC;
|
/external/autotest/client/tests/cyclictest/src/ |
D | cyclictest.c | 41 #define USEC_PER_SEC 1000000 macro 178 diff = USEC_PER_SEC * ((int) t1.tv_sec - (int) t2.tv_sec); in calcdiff() 211 interval.tv_sec = par->interval / USEC_PER_SEC; in timerthread() 212 interval.tv_nsec = (par->interval % USEC_PER_SEC) * 1000; in timerthread()
|
/external/kmod/shared/ |
D | util.c | 35 #define USEC_PER_SEC 1000000ULL macro 462 return (unsigned long long) ts->tv_sec * USEC_PER_SEC + in ts_usec()
|
/external/libevent/ |
D | evutil_time.c | 83 #define USEC_PER_SEC U64_LITERAL(1000000) in evutil_gettimeofday() macro 101 tv->tv_usec = (long) ((ft.ft_64 / UNITS_PER_USEC) % USEC_PER_SEC); in evutil_gettimeofday()
|
/external/autotest/client/tests/signaltest/src/ |
D | signaltest.c | 36 #define USEC_PER_SEC 1000000 macro 83 diff = USEC_PER_SEC * ((int) t1.tv_sec - (int) t2.tv_sec); in calcdiff()
|
/external/kmod/testsuite/ |
D | testsuite.c | 64 #define USEC_PER_SEC 1000000ULL macro 66 #define TEST_TIMEOUT_USEC 2 * USEC_PER_SEC
|
/external/u-boot/fs/ubifs/ |
D | io.c | 463 div_u64(ktime_to_ns(wbuf->softlimit), USEC_PER_SEC), in new_wbuf_timer_nolock() 465 USEC_PER_SEC)); in new_wbuf_timer_nolock()
|