/external/ltp/include/ |
D | tst_timer.h | 37 static inline long long tst_timespec_to_ns(struct timespec t) in tst_timespec_to_ns() 45 static inline long long tst_timespec_to_us(struct timespec t) in tst_timespec_to_us() 53 static inline long long tst_timespec_to_ms(struct timespec t) in tst_timespec_to_ms() 103 static inline struct timespec tst_ms_to_timespec(long long ms) in tst_ms_to_timespec() 105 struct timespec ret; in tst_ms_to_timespec() 116 static inline struct timespec tst_us_to_timespec(long long us) in tst_us_to_timespec() 118 struct timespec ret; in tst_us_to_timespec() 129 static inline int tst_timespec_lt(struct timespec t1, struct timespec t2) in tst_timespec_lt() 140 static inline struct timespec tst_timespec_add_us(struct timespec t, in tst_timespec_add_us() 157 static inline struct timespec tst_timespec_diff(struct timespec t1, in tst_timespec_diff() [all …]
|
/external/adhd/cras/src/tests/ |
D | timing_unittest.cc | 44 timespec SingleInputDevNextWake( in SingleInputDevNextWake() 47 const timespec* level_timestamp, in SingleInputDevNextWake() 67 struct timespec dev_time; in SingleInputDevNextWake() 85 struct timespec start; in TEST_F() 92 timespec dev_time = SingleInputDevNextWake(cb_threshold, 0, &start, in TEST_F() 114 struct timespec start; in TEST_F() 120 timespec dev_time = SingleInputDevNextWake( in TEST_F() 123 struct timespec delta; in TEST_F() 145 struct timespec start; in TEST_F() 151 timespec dev_time = SingleInputDevNextWake( in TEST_F() [all …]
|
D | rate_estimator_unittest.cc | 11 static struct timespec window = { 18 struct timespec t = { in TEST() 47 struct timespec t = { in TEST() 79 struct timespec t = { in TEST() 110 struct timespec t; in TEST() 139 struct timespec t; in TEST() 166 struct timespec t; in TEST() 168 static struct timespec this_window = { in TEST()
|
D | iodev_stub.cc | 16 timespec frames_queued_ts; 25 void iodev_stub_frames_queued(cras_iodev* iodev, int ret, timespec ts) { in iodev_stub_frames_queued() 41 struct timespec *tstamp) { in cras_iodev_frames_queued() 57 struct timespec *level_tstamp) { in cras_iodev_update_rate() 136 struct timespec *hw_tstamp) in cras_iodev_frames_to_play_in_sleep()
|
/external/adhd/cras/src/common/ |
D | cras_util.h | 41 struct timespec *t) in cras_frames_to_time() 51 struct timespec *t) in cras_frames_to_time_precise() 60 static inline unsigned int cras_time_to_frames(const struct timespec *t, in cras_time_to_frames() 89 static inline void subtract_timespecs(const struct timespec *end, in subtract_timespecs() 90 const struct timespec *beg, in subtract_timespecs() 91 struct timespec *diff) in subtract_timespecs() 106 static inline void add_timespecs(struct timespec *a, in add_timespecs() 107 const struct timespec *b) in add_timespecs() 119 static inline void cras_timespec_to_timespec(struct timespec *dest, in cras_timespec_to_timespec() 130 struct timespec tp; in cras_clock_gettime() [all …]
|
/external/ltp/testcases/kernel/timers/leapsec/ |
D | leapsec_timer.c | 41 static inline int in_order(struct timespec a, struct timespec b); 43 static const char *strtime(const struct timespec *now); 66 static inline int in_order(struct timespec a, struct timespec b) in in_order() 88 struct timespec now; in adjtimex_status() 107 static const char *strtime(const struct timespec *now) in strtime() 124 struct timespec now, target; in test_hrtimer_early_expiration() 149 const struct timespec sleeptime = { 0, NSEC_PER_SEC / 2 }; in run_leapsec() 150 struct timespec now, leap, start; in run_leapsec() 212 struct timespec now; in cleanup()
|
/external/grpc-grpc/src/python/grpcio/grpc/_cython/_cygrpc/ |
D | time.pyx.pxi | 17 cdef gpr_timespec timespec 21 timespec.seconds = time 22 timespec.nanoseconds = (time - float(timespec.seconds)) * 1e9 23 timespec.clock_type = GPR_CLOCK_REALTIME 24 return timespec 27 cdef double _time_from_timespec(gpr_timespec timespec): argument 29 timespec, GPR_CLOCK_REALTIME)
|
/external/linux-kselftest/tools/testing/selftests/timers/ |
D | adjtick.c | 44 unsigned long long ts_to_nsec(struct timespec ts) in ts_to_nsec() 49 struct timespec nsec_to_ts(long long ns) in nsec_to_ts() 51 struct timespec ts; in nsec_to_ts() 59 long long diff_timespec(struct timespec start, struct timespec end) in diff_timespec() 69 void get_monotonic_and_raw(struct timespec *mon, struct timespec *raw) in get_monotonic_and_raw() 71 struct timespec start, mid, end; in get_monotonic_and_raw() 98 struct timespec mon_start, raw_start, mon_end, raw_end; in get_ppm_drift() 169 struct timespec raw; in main()
|
D | raw_skew.c | 46 unsigned long long ts_to_nsec(struct timespec ts) in ts_to_nsec() 51 struct timespec nsec_to_ts(long long ns) in nsec_to_ts() 53 struct timespec ts; in nsec_to_ts() 60 long long diff_timespec(struct timespec start, struct timespec end) in diff_timespec() 69 void get_monotonic_and_raw(struct timespec *mon, struct timespec *raw) in get_monotonic_and_raw() 71 struct timespec start, mid, end; in get_monotonic_and_raw() 94 struct timespec mon, raw, start, end; in main()
|
D | mqueue-lat.c | 40 long long timespec_sub(struct timespec a, struct timespec b) in timespec_sub() 48 struct timespec timespec_add(struct timespec ts, unsigned long long ns) in timespec_add() 63 struct timespec start, end, now, target; in mqueue_lat_test()
|
D | leap-a-day.c | 60 static inline int in_order(struct timespec a, struct timespec b) in in_order() 71 struct timespec timespec_add(struct timespec ts, unsigned long long ns) in timespec_add() 162 struct timespec now, target; in test_hrtimer_failure() 213 struct timespec ts; in main() 238 struct timespec ts; in main() 331 struct timespec tai; in main()
|
D | nanosleep.c | 80 static inline int in_order(struct timespec a, struct timespec b) in in_order() 91 struct timespec timespec_add(struct timespec ts, unsigned long long ns) in timespec_add() 103 struct timespec now, target, rel; in nanosleep_test()
|
/external/ltp/testcases/realtime/include/ |
D | librttest.h | 285 void ts_minus(struct timespec *ts_end, struct timespec *ts_start, struct timespec *ts_delta); 290 void ts_plus(struct timespec *ts_a, struct timespec *ts_b, struct timespec *ts_sum); 295 void ts_normalize(struct timespec *ts); 300 void nsec_to_ts(nsec_t ns, struct timespec *ts); 305 int ts_to_nsec(struct timespec *ts, nsec_t *ns);
|
/external/ltp/testcases/kernel/syscalls/statx/ |
D | statx06.c | 57 struct timespec *timespec) in timestamp_to_timespec() argument 59 timespec->tv_sec = timestamp->tv_sec; in timestamp_to_timespec() 60 timespec->tv_nsec = timestamp->tv_nsec; in timestamp_to_timespec() 65 struct timespec res; in clock_wait_tick() 119 struct timespec before_time; in test_statx() 120 struct timespec after_time; in test_statx() 121 struct timespec statx_time = {0, 0}; in test_statx()
|
/external/grpc-grpc/src/csharp/Grpc.Core/Profiling/ |
D | ProfilerEntry.cs | 35 public ProfilerEntry(Timespec timespec, Type type, string tag) in ProfilerEntry() 37 this.timespec = timespec; in ProfilerEntry() 42 public Timespec timespec; field 52 timespec.TimevalSeconds, timespec.TimevalNanos.ToString("D9"), in ToString()
|
/external/adhd/cras/src/server/ |
D | cras_tm.c | 19 struct timespec ts; 33 static inline void add_ms_ts(struct timespec *ts, unsigned int ms) in add_ms_ts() 47 static inline int timespec_sooner(const struct timespec *a, in timespec_sooner() 48 const struct timespec *b) in timespec_sooner() 101 int cras_tm_get_next_timeout(const struct cras_tm *tm, struct timespec *ts) in cras_tm_get_next_timeout() 104 struct timespec now; in cras_tm_get_next_timeout() 105 struct timespec *min; in cras_tm_get_next_timeout() 129 struct timespec now; in cras_tm_call_callbacks()
|
D | cras_audio_thread_monitor.c | 28 struct timespec now_time; in take_snapshot() 81 static struct timespec last_event_snapshot_time[AUDIO_THREAD_EVENT_TYPE_COUNT]; 94 struct timespec now_time; in handle_audio_thread_event_message() 102 struct timespec *last_snapshot_time = in handle_audio_thread_event_message() 110 struct timespec diff_time; in handle_audio_thread_event_message() 124 0, sizeof(struct timespec) * AUDIO_THREAD_EVENT_TYPE_COUNT); in cras_audio_thread_monitor_init()
|
D | dev_stream.h | 47 void *dev_ptr, struct timespec *cb_ts); 156 const struct timespec *now); 176 struct timespec *level_tstamp, 179 struct timespec *wake_time_out); 187 static inline const struct timespec * 196 static inline const struct timespec *
|
D | rate_estimator.h | 39 struct timespec window_start_ts; 40 struct timespec window_size; 55 const struct timespec *window_size, 79 struct timespec *now);
|
D | polled_interval_checker.c | 10 struct timespec last_interval_start_ts; 14 static struct timespec now; 17 const struct timespec *last_active_ts) { in get_sec_since_last_active() 18 struct timespec diff; in get_sec_since_last_active()
|
/external/grpc-grpc/src/csharp/Grpc.Core.Tests/Internal/ |
D | TimespecTest.cs | 38 var timespec = Timespec.Now; in Now_AgreesWithUtcNow() 41 TimeSpan difference = utcNow - timespec.ToDateTime(); in Now_AgreesWithUtcNow() 112 var timespec = new Timespec(long.MaxValue - 100, 0); in ToDateTime_Overflow() 113 Assert.AreNotEqual(Timespec.InfFuture, timespec); in ToDateTime_Overflow() 114 Assert.AreEqual(DateTime.MaxValue, timespec.ToDateTime()); in ToDateTime_Overflow() 126 var timespec = new Timespec(seconds, 0); in ToDateTime_OutOfDateTimeRange() 127 Assert.AreNotEqual(Timespec.InfFuture, timespec); in ToDateTime_OutOfDateTimeRange() 128 Assert.AreEqual(DateTime.MaxValue, timespec.ToDateTime()); in ToDateTime_OutOfDateTimeRange()
|
/external/libcxx/docs/DesignDocs/ |
D | FileTimeType.rst | 25 On POSIX systems, file times are represented using the ``timespec`` struct, 30 struct timespec { 35 To represent the range and resolution of ``timespec``, we need to (A) have 59 of representing the range of the ``timespec`` struct? 68 Having a Smaller Range than ``timespec`` 78 ``timespec`` can represent time points +/- 292 billion years from the epoch 105 void set_file_times(const char* path, struct timespec ts) { 106 timespec both_times[2]; 116 struct timespec new_times; 134 Having a Smaller Resolution than ``timespec`` [all …]
|
/external/strace/ |
D | delay.c | 31 struct timespec ts_enter; 32 struct timespec ts_exit; 74 struct timespec *ts; in fill_delay_data() 130 struct timespec *ts_diff; in delay_tcb() 136 struct timespec ts_now; in delay_tcb() 145 const struct timespec *const ts_old = &its.it_value; in delay_tcb()
|
/external/ltp/testcases/kernel/syscalls/clock_nanosleep/ |
D | clock_nanosleep01.c | 46 struct timespec rq; 62 .rq = (struct timespec) {.tv_sec = 0, .tv_nsec = -1}, 70 .rq = (struct timespec) {.tv_sec = 0, .tv_nsec = 1000000000}, 78 .rq = (struct timespec) {.tv_sec = 0, .tv_nsec = 500000000}, 86 .rq = (struct timespec) {.tv_sec = 10, .tv_nsec = 0}, 100 struct timespec rm = {0}; in do_test()
|
/external/ltp/testcases/kernel/syscalls/utils/ |
D | mq_timed.h | 27 struct timespec *rq; 36 static pid_t set_sig(struct timespec *ts) in set_sig() 44 static void set_timeout(struct timespec *ts) in set_timeout() 55 &((struct timespec){0})) < 0) in send_msg()
|