Home
last modified time | relevance | path

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

/external/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()
/external/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 …]
/external/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()
/external/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()
/external/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()
/external/autotest/server/cros/bluetooth/
Dbluetooth_adapter_pairing_tests.py180 time_diff = end_time - start_time
188 total_duration_by_adapter += time_diff
190 i, time_diff)
225 time_diff = end_time - start_time
228 total_reconnection_duration += time_diff
230 logging.info('%d: Reconnection duration %f sec', i, time_diff)
/external/grpc-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()
/external/markdown/MarkdownTest/
DMarkdownTest.pl91 my $time_diff = timediff($time_end, $time_start);
92 print "Benchmark: ", timestr($time_diff), "\n";
/external/autotest/client/tests/wb_kupdate/
Dwb_kupdate.py89 time_diff = datetime.datetime.now() - start_time
91 time_diff = _now - start_time
92 return time_diff <= datetime.timedelta(seconds=duration*60)
/external/webrtc/webrtc/modules/video_coding/codecs/vp9/
Dscreenshare_layers.cc55 float time_diff = (timestamp - last_timestamp_) / 90.f; in GetSuperFrameSettings() local
64 0.f, bits_used_[layer_id] - time_diff * threshold_kbps_[layer_id]); in GetSuperFrameSettings()
/external/libdrm/tests/ttmtest/
DChangeLog15 * src/ttmtest.c: (fastrdtsc), (time_diff), (releaseContext),
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_offload.py1150 time_diff = end - start variable
1151 log("Time", "start:\t%s\nend:\t%s\ndiff:\t%s" % (start, end, time_diff))
1155 fail(time_diff < delay_sec, "Removal process took %s, expected %s" %
1156 (time_diff, delay_sec))
/external/mesa3d/src/mesa/drivers/x11/
Dxm_dd.c804 time_diff(const struct timeval *t0, const struct timeval *t1) in time_diff() function
822 q->Result = time_diff(&xq->StartTime, &endTime); in xmesa_end_query()