Home
last modified time | relevance | path

Searched refs:time_diff (Results 1 – 21 of 21) sorted by relevance

/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/
D1-1.c163 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 …]
D3-1.c183 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 …]
D6-1.c111 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/
Dttmtest.c129 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/
D1-1.c51 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()
D2-1.c54 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/
D1-1.c164 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()
D3-1.c178 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/
D1-1.c24 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/
Dmetrics_server.cc47 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/
Dposix-poll.c138 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/
Dgsttheoraparse.c464 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/
DChangeLog15 * src/ttmtest.c: (fastrdtsc), (time_diff), (releaseContext),
/third_party/gstreamer/gstplugins_bad/gst/debugutils/
Dfpsdisplaysink.c352 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/
Dtest_log.py293 time_diff = time_diff_logger - time_diff_py_logging
298 assert time_diff < std_time
/third_party/gstreamer/gstreamer/libs/gst/check/
Dgsttestclock.c194 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/
Dxm_dd.c811 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/
Doperations_test.cpp1811 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/
Dintegrator.py916 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/
Dgstrtpjitterbuffer.c2021 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/
Dffplay.c1067 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()