Home
last modified time | relevance | path

Searched refs:nsec_t (Results 1 – 16 of 16) sorted by relevance

/third_party/eudev/src/shared/
Dtime-util.h25 typedef uint64_t nsec_t; typedef
37 #define NSEC_INFINITY ((nsec_t) -1)
42 #define NSEC_PER_SEC ((nsec_t) 1000000000ULL)
43 #define NSEC_PER_MSEC ((nsec_t) 1000000ULL)
44 #define NSEC_PER_USEC ((nsec_t) 1000ULL)
47 #define NSEC_PER_MINUTE ((nsec_t) (60ULL*NSEC_PER_SEC))
49 #define NSEC_PER_HOUR ((nsec_t) (60ULL*NSEC_PER_MINUTE))
51 #define NSEC_PER_DAY ((nsec_t) (24ULL*NSEC_PER_HOUR))
53 #define NSEC_PER_WEEK ((nsec_t) (7ULL*NSEC_PER_DAY))
55 #define NSEC_PER_MONTH ((nsec_t) (2629800ULL*NSEC_PER_SEC))
[all …]
/third_party/ltp/testcases/realtime/include/
Dlibrttest.h77 typedef unsigned long long nsec_t; typedef
299 void nsec_to_ts(nsec_t ns, struct timespec *ts);
304 int ts_to_nsec(struct timespec *ts, nsec_t *ns);
311 void rt_nanosleep(nsec_t ns);
316 void rt_nanosleep_until(nsec_t ns);
320 nsec_t rt_gettime(void);
/third_party/ltp/testcases/realtime/func/sched_latency/
Dsched_latency.c66 nsec_t start;
67 nsec_t end;
71 static nsec_t period = DEF_PERIOD;
120 nsec_t delay, avg_delay = 0, start_delay, min_delay = -1ULL, max_delay = in periodic_thread()
123 nsec_t next = 0, now = 0, sched_delta = 0, delta = 0, prev = in periodic_thread()
169 nsec_t new_now; in periodic_thread()
179 (now - iter_start - (nsec_t) (i + 1) * period) / NS_PER_US; in periodic_thread()
/third_party/ltp/testcases/realtime/func/async_handler/
Dasync_handler_tsc.c58 nsec_t start;
59 nsec_t end;
98 nsec_t ns_start; in tsc_period_ps()
99 nsec_t ns_end; in tsc_period_ps()
Dasync_handler.c52 static nsec_t start;
53 static nsec_t end;
/third_party/ltp/testcases/realtime/lib/
Dlibrttest.c94 nsec_t start, end; in calibrate_busyloop()
475 int ts_to_nsec(struct timespec *ts, nsec_t * ns) in ts_to_nsec()
492 *ns = (nsec_t) ts->tv_sec * NS_PER_SEC + ts->tv_nsec; in ts_to_nsec()
496 void nsec_to_ts(nsec_t ns, struct timespec *ts) in nsec_to_ts()
521 void rt_nanosleep_until(nsec_t ns) in rt_nanosleep_until()
535 void rt_nanosleep(nsec_t ns) in rt_nanosleep()
548 nsec_t rt_gettime(void) in rt_gettime()
551 nsec_t ns; in rt_gettime()
575 nsec_t start, now; in busy_work_us()
/third_party/ltp/testcases/realtime/func/prio-wake/
Dprio-wake.c64 static volatile nsec_t beginrun;
107 nsec_t start; in master_thread()
137 nsec_t start, wake; in worker_thread()
/third_party/ltp/testcases/realtime/func/periodic_cpu_load/
Dperiodic_cpu_load_single.c86 int periodic_thread(nsec_t period, int iterations, int loops) in periodic_thread()
95 nsec_t next, now; in periodic_thread()
96 nsec_t exe_start, exe_end, exe_time; in periodic_thread()
Dperiodic_cpu_load.c125 nsec_t period = parg->period; in periodic_thread()
129 nsec_t next, now; in periodic_thread()
130 nsec_t exe_start, exe_end, exe_time; in periodic_thread()
/third_party/ltp/testcases/realtime/func/pi_perf/
Dpi_perf.c76 nsec_t low_unlock, max_pi_delay;
135 nsec_t low_start, low_hold; in low_prio_thread()
173 nsec_t high_start, high_end, high_get_lock; in high_prio_thread()
/third_party/ltp/testcases/realtime/func/gtod_latency/
Dgtod_infinite.c106 nsec_t s_time, e_time, diff_time; in main()
107 nsec_t max_time = START_MAX; in main()
/third_party/ltp/testcases/realtime/func/pi-tests/
Dtestpi-7.c158 static nsec_t low_drop_time;
226 nsec_t start, now; in high_prio_rt_thread()
/third_party/ltp/testcases/realtime/func/matrix_mult/
Dmatrix_mult.c115 nsec_t start, end, delta; in matrix_mult_record()
175 nsec_t start, end; in main_thread()
/third_party/ltp/testcases/realtime/func/hrtimer-prio/
Dhrtimer-prio.c126 nsec_t start, end; in timer_thread()
/third_party/ltp/testcases/realtime/func/pthread_kill_latency/
Dpthread_kill_latency.c67 nsec_t begin, end;
/third_party/ltp/testcases/realtime/func/prio-preempt/
Dprio-preempt.c166 nsec_t pstart, pend; in worker_thread()