Home
last modified time | relevance | path

Searched refs:USEC_PER_SEC (Results 1 – 24 of 24) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/timers/
Dvalid-adjtimex.c38 #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 …]
Dadjtick.c31 #define USEC_PER_SEC 1000000 macro
184 systick = USEC_PER_SEC/sysconf(_SC_CLK_TCK); in main()
/external/ltp/utils/ffsb-6.0-rc2/
Dmain.c220 #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/
Dsched_boost.c42 #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()
Dsugov_latency.c178 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()
Dutil.h14 #define USEC_PER_SEC 1000000 macro
16 #define TS_TO_USEC(x) (x.usec + x.sec * USEC_PER_SEC)
Dsched_dl_runtime.c61 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()
Deas_small_to_big.c36 burn(BURN_SEC * USEC_PER_SEC, 1); in task_fn()
40 burn(BURN_SEC * USEC_PER_SEC, 0); in task_fn()
Dutil.c43 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()
Dsched_cfs_prio.c47 burn(TEST_TASK_SECONDS * USEC_PER_SEC, 0); in task_fn()
148 expected_us[i] = TEST_TASK_SECONDS * USEC_PER_SEC; in parse_results()
Deas_small_big_toggle.c40 burn(BURN_SEC * USEC_PER_SEC, 1); in task_fn()
43 burn(BURN_SEC * USEC_PER_SEC, 0); in task_fn()
Deas_one_small_task.c33 burn(BURN_SEC * USEC_PER_SEC, 1); in task_fn()
Deas_one_big_task.c35 burn(BURN_SEC * USEC_PER_SEC, 0); in task_fn()
Dsched_latency_rt.c49 burn(USEC_PER_SEC, 0); in cfs_fn()
Deas_two_big_three_small.c35 burn(BURN_SEC * USEC_PER_SEC, id < 3 ? 1 : 0); in task_fn()
Dsched_latency_dl.c67 burn(USEC_PER_SEC, 0); in cfs_fn()
/external/ltp/testcases/kernel/syscalls/settimeofday/
Dsettimeofday01.c67 #define USEC_PER_SEC 1000000L macro
96 if (tp.tv_usec >= USEC_PER_SEC) in main()
/external/walt/ios/WALT/
DWALTClient.m56 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/
Dcyclictest.c41 #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/
Dutil.c35 #define USEC_PER_SEC 1000000ULL macro
462 return (unsigned long long) ts->tv_sec * USEC_PER_SEC + in ts_usec()
/external/libevent/
Devutil_time.c83 #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/
Dsignaltest.c36 #define USEC_PER_SEC 1000000 macro
83 diff = USEC_PER_SEC * ((int) t1.tv_sec - (int) t2.tv_sec); in calcdiff()
/external/kmod/testsuite/
Dtestsuite.c64 #define USEC_PER_SEC 1000000ULL macro
66 #define TEST_TIMEOUT_USEC 2 * USEC_PER_SEC
/external/u-boot/fs/ubifs/
Dio.c463 div_u64(ktime_to_ns(wbuf->softlimit), USEC_PER_SEC), in new_wbuf_timer_nolock()
465 USEC_PER_SEC)); in new_wbuf_timer_nolock()