Home
last modified time | relevance | path

Searched refs:time_diff (Results 1 – 20 of 20) 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/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/node/deps/uv/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/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/libdrm/tests/ttmtest/
DChangeLog15 * src/ttmtest.c: (fastrdtsc), (time_diff), (releaseContext),
/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/openssl/crypto/http/
Dhttp_client.c496 time_t time_diff, now = time(NULL); in may_still_retry() local
503 time_diff = max_time - now; in may_still_retry()
504 *ptimeout = time_diff > INT_MAX ? INT_MAX : (int)time_diff; in may_still_retry()
/third_party/node/deps/openssl/openssl/crypto/http/
Dhttp_client.c496 time_t time_diff, now = time(NULL); in may_still_retry() local
503 time_diff = max_time - now; in may_still_retry()
504 *ptimeout = time_diff > INT_MAX ? INT_MAX : (int)time_diff; in may_still_retry()
/third_party/f2fs-tools/fsck/
Dmount.c1029 u32 prev_time, cur_time, time_diff; in validate_super_block() local
1044 time_diff = cur_time - prev_time; in validate_super_block()
1045 if (time_diff < CHECK_PERIOD) in validate_super_block()
/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()