/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/ |
D | 1-1.c | 163 struct timeval time_diff; in main() local 164 time_diff.tv_sec = currsec2.tv_sec - currsec1.tv_sec; in main() 165 time_diff.tv_usec = currsec2.tv_usec - currsec1.tv_usec; in main() 166 if (time_diff.tv_usec < 0) { in main() 167 --time_diff.tv_sec; in main() 168 time_diff.tv_usec += 1000000; in main() 170 if (time_diff.tv_sec < TIMEOUT) { in main() 173 TIMEOUT, (long)time_diff.tv_sec, in main() 174 (long)time_diff.tv_usec); in main() 220 struct timeval time_diff; in main() local [all …]
|
D | 3-1.c | 183 struct timeval time_diff; in main() local 184 time_diff.tv_sec = currsec2.tv_sec - currsec1.tv_sec; in main() 185 time_diff.tv_usec = currsec2.tv_usec - currsec1.tv_usec; in main() 186 if (time_diff.tv_usec < 0) { in main() 187 --time_diff.tv_sec; in main() 188 time_diff.tv_usec += 1000000; in main() 190 if (time_diff.tv_sec < TIMEOUT) { in main() 194 TIMEOUT, (long)time_diff.tv_sec, in main() 195 (long)time_diff.tv_usec); in main() 241 struct timeval time_diff; in main() local [all …]
|
D | 6-1.c | 111 struct timeval time_diff; in main() local 168 time_diff.tv_sec = after_wait.tv_sec - before_wait.tv_sec; in main() 169 time_diff.tv_usec = after_wait.tv_usec - before_wait.tv_usec; in main() 170 if (time_diff.tv_usec < 0) { in main() 171 --time_diff.tv_sec; in main() 172 time_diff.tv_usec += 1000000; in main() 174 if (time_diff.tv_sec < TIMEOUT) { in main() 177 TIMEOUT, (long)time_diff.tv_sec, (long)time_diff.tv_usec); in main()
|
/third_party/libdrm/tests/ttmtest/src/ |
D | ttmtest.c | 129 time_diff(unsigned t, unsigned t2) in time_diff() function 186 *ticks++ = time_diff(oldTime, curTime); in benchmarkBuffer() 192 *ticks++ = time_diff(oldTime, curTime); in benchmarkBuffer() 197 *ticks++ = time_diff(oldTime, curTime); in benchmarkBuffer() 202 *ticks++ = time_diff(oldTime, curTime); in benchmarkBuffer() 207 *ticks++ = time_diff(oldTime, curTime); in benchmarkBuffer() 212 *ticks++ = time_diff(oldTime, curTime); in benchmarkBuffer() 224 *ticks++ = time_diff(oldTime, curTime); in benchmarkBuffer() 230 *ticks++ = time_diff(oldTime, curTime); in benchmarkBuffer() 235 *ticks++ = time_diff(oldTime, curTime); in benchmarkBuffer() [all …]
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/ |
D | 1-1.c | 51 struct timeval time_diff; in main() local 82 time_diff.tv_sec = currsec2.tv_sec - currsec1.tv_sec; in main() 83 time_diff.tv_usec = currsec2.tv_usec - currsec1.tv_usec; in main() 84 if (time_diff.tv_usec < 0) { in main() 85 --time_diff.tv_sec; in main() 86 time_diff.tv_usec += 1000000; in main() 88 if (time_diff.tv_sec < TIMEOUT) { in main()
|
D | 2-1.c | 54 struct timeval time_diff; in main() local 85 time_diff.tv_sec = currsec2.tv_sec - currsec1.tv_sec; in main() 86 time_diff.tv_usec = currsec2.tv_usec - currsec1.tv_usec; in main() 87 if (time_diff.tv_usec < 0) { in main() 88 --time_diff.tv_sec; in main() 89 time_diff.tv_usec += 1000000; in main() 91 if (time_diff.tv_sec < TIMEOUT) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/ |
D | 1-1.c | 164 struct timeval time_diff; in main() local 165 time_diff.tv_sec = currsec2.tv_sec - currsec1.tv_sec; in main() 166 time_diff.tv_usec = currsec2.tv_usec - currsec1.tv_usec; in main() 167 if (time_diff.tv_usec < 0) { in main() 168 --time_diff.tv_sec; in main() 169 time_diff.tv_usec += 1000000; in main() 171 if (time_diff.tv_sec < TIMEOUT) { in main()
|
D | 3-1.c | 178 struct timeval time_diff; in main() local 179 time_diff.tv_sec = currsec2.tv_sec - currsec1.tv_sec; in main() 180 time_diff.tv_usec = currsec2.tv_usec - currsec1.tv_usec; in main() 181 if (time_diff.tv_usec < 0) { in main() 182 --time_diff.tv_sec; in main() 183 time_diff.tv_usec += 1000000; in main() 185 if (time_diff.tv_sec < TIMEOUT) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/difftime/ |
D | 1-1.c | 24 double time_diff; in main() local 27 time_diff = difftime(time0 + 1, time0); in main() 29 if (time_diff != WAIT_DURATION) { in main()
|
/third_party/grpc/test/cpp/util/ |
D | metrics_server.cc | 47 gpr_timespec time_diff = in Get() local 49 long duration_secs = time_diff.tv_sec > 0 ? time_diff.tv_sec : 1; in Get()
|
/third_party/libuv/src/unix/ |
D | posix-poll.c | 138 uint64_t time_diff; in uv__io_poll() local 325 time_diff = loop->time - time_base; in uv__io_poll() 326 if (time_diff >= (uint64_t) timeout) in uv__io_poll() 329 timeout -= time_diff; in uv__io_poll()
|
/third_party/gstreamer/gstplugins_base/ext/theora/ |
D | gsttheoraparse.c | 464 GstClockTimeDiff time_diff; in theora_parse_munge_granulepos() local 476 time_diff = parse->times[i * 2 - 1] - parse->times[i * 2 - 2]; in theora_parse_munge_granulepos() 477 parse->granule_offset = gst_util_uint64_scale (time_diff, in theora_parse_munge_granulepos() 484 time_diff = gst_util_uint64_scale_int (GST_SECOND * frames_diff, in theora_parse_munge_granulepos() 488 " frames (%" GST_TIME_FORMAT ")", frames_diff, GST_TIME_ARGS (time_diff)); in theora_parse_munge_granulepos() 491 GST_BUFFER_OFFSET (buf) += time_diff; in theora_parse_munge_granulepos() 492 GST_BUFFER_TIMESTAMP (buf) += time_diff; in theora_parse_munge_granulepos()
|
/third_party/libdrm/tests/ttmtest/ |
D | ChangeLog | 15 * src/ttmtest.c: (fastrdtsc), (time_diff), (releaseContext),
|
/third_party/gstreamer/gstplugins_bad/gst/debugutils/ |
D | fpsdisplaysink.c | 352 gdouble time_diff, time_elapsed; in display_current_fps() local 363 time_diff = (gdouble) (current_ts - self->last_ts) / GST_SECOND; in display_current_fps() 366 rr = (gdouble) (frames_rendered - self->last_frames_rendered) / time_diff; in display_current_fps() 367 dr = (gdouble) (frames_dropped - self->last_frames_dropped) / time_diff; in display_current_fps()
|
/third_party/mindspore/tests/ut/python/ |
D | test_log.py | 293 time_diff = time_diff_logger - time_diff_py_logging 298 assert time_diff < std_time
|
/third_party/gstreamer/gstreamer/libs/gst/check/ |
D | gsttestclock.c | 194 GstClockTimeDiff time_diff; member 561 ctx->time_diff = GST_CLOCK_DIFF (now, GST_CLOCK_ENTRY_TIME (entry)); in gst_test_clock_add_entry() 621 if (ctx->time_diff >= 0) in process_entry_context_unlocked()
|
/third_party/mesa3d/src/mesa/drivers/x11/ |
D | xm_dd.c | 811 time_diff(const struct timeval *t0, const struct timeval *t1) in time_diff() function 829 q->Result = time_diff(&xq->StartTime, &endTime); in xmesa_end_query()
|
/third_party/boost/libs/filesystem/test/ |
D | operations_test.cpp | 1811 double time_diff = std::difftime(ft, fs::last_write_time(f1x)); in write_time_tests() local 1814 << time_diff << " seconds" << endl; in write_time_tests() 1815 BOOST_TEST(time_diff >= -60.0 && time_diff <= 60.0); in write_time_tests()
|
/third_party/mindspore/mindspore/profiler/parser/ |
D | integrator.py | 916 time_diff = gpu_start_time - host_monotonic_start_time 918 … timeline_list[idx][self._start_time_idx] = int(time_item[self._start_time_idx]) + time_diff
|
/third_party/gstreamer/gstplugins_good/gst/rtpmanager/ |
D | gstrtpjitterbuffer.c | 2021 GstClockTime time_diff; in new_drop_message() local 2025 time_diff = current_time - priv->last_drop_msg_timestamp; in new_drop_message() 2040 if ((time_diff >= priv->drop_messages_interval_ms * GST_MSECOND) || in new_drop_message()
|
/third_party/ffmpeg/fftools/ |
D | ffplay.c | 1067 int64_t time_diff; in video_audio_display() local 1086 time_diff = av_gettime_relative() - audio_callback_time; in video_audio_display() 1087 delay -= (time_diff * s->audio_tgt.freq) / 1000000; in video_audio_display()
|