/external/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()
|
/external/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 …]
|
/external/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()
|
/external/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()
|
/external/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()
|
/external/grpc-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()
|
/external/markdown/MarkdownTest/ |
D | MarkdownTest.pl | 91 my $time_diff = timediff($time_end, $time_start); 92 print "Benchmark: ", timestr($time_diff), "\n";
|
/external/autotest/client/tests/wb_kupdate/ |
D | wb_kupdate.py | 89 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/ |
D | screenshare_layers.cc | 55 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/ |
D | ChangeLog | 15 * src/ttmtest.c: (fastrdtsc), (time_diff), (releaseContext),
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_offload.py | 1044 time_diff = end - start variable 1045 log("Time", "start:\t%s\nend:\t%s\ndiff:\t%s" % (start, end, time_diff)) 1049 fail(time_diff < delay_sec, "Removal process took %s, expected %s" % 1050 (time_diff, delay_sec))
|
/external/mesa3d/src/mesa/drivers/x11/ |
D | xm_dd.c | 804 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()
|