/third_party/node/deps/v8/src/base/platform/ |
D | elapsed-timer.h | 65 TimeDelta elapsed = now - start_ticks_; in Restart() local 66 DCHECK_GE(elapsed.InMicroseconds(), 0); in Restart() 69 return elapsed; in Restart() 75 TimeDelta elapsed = Elapsed(now); in Pause() local 80 set_paused_elapsed(elapsed); in Pause() 89 TimeDelta elapsed = paused_elapsed(); in Resume() local 93 set_start_ticks(now - elapsed); in Resume() 104 TimeDelta elapsed = now - start_ticks(); in Elapsed() local 105 DCHECK_GE(elapsed.InMicroseconds(), 0); in Elapsed() 106 return elapsed; in Elapsed()
|
/third_party/vixl/benchmarks/aarch64/ |
D | bench-utils.h | 45 timeval elapsed = GetElapsed(); in GetElapsedSeconds() local 46 double sec = elapsed.tv_sec; in GetElapsedSeconds() 47 double usec = elapsed.tv_usec; in GetElapsedSeconds() 52 timeval elapsed = GetElapsed(); in HasRunFor() local 53 VIXL_ASSERT(elapsed.tv_sec >= 0); in HasRunFor() 54 return static_cast<uint64_t>(elapsed.tv_sec) >= seconds; in HasRunFor() 60 timeval now, elapsed; in GetElapsed() local 62 timersub(&now, &start_, &elapsed); in GetElapsed() 63 return elapsed; in GetElapsed()
|
/third_party/ltp/testcases/kernel/syscalls/clock_settime/ |
D | clock_settime01.c | 57 long long elapsed; in verify_clock_settime() local 73 elapsed = tst_ts_diff_us(*end, *begin); in verify_clock_settime() 75 if (elapsed >= DELTA_US && elapsed < (DELTA_US + DELTA_EPS)) in verify_clock_settime() 94 elapsed = tst_ts_diff_us(*end, *begin); in verify_clock_settime() 96 if (~(elapsed) <= DELTA_US && ~(elapsed) > (DELTA_US - DELTA_EPS)) in verify_clock_settime()
|
/third_party/ltp/lib/ |
D | tst_wallclock.c | 46 static struct timespec mono_end, elapsed, adjust; in tst_wallclock_restore() local 57 elapsed = tst_timespec_diff(mono_end, mono_begin); in tst_wallclock_restore() 59 adjust = tst_timespec_add(real_begin, elapsed); in tst_wallclock_restore() 94 static struct timespec mono_end, elapsed; in tst_rtc_clock_restore() local 106 elapsed = tst_timespec_diff(mono_end, mono_begin); in tst_rtc_clock_restore() 111 rtc_adjust = tst_timespec_add(rtc_begin_tm, elapsed); in tst_rtc_clock_restore()
|
/third_party/rust/crates/bindgen/bindgen/ |
D | time.rs | 31 pub fn elapsed(&self) -> Duration { in elapsed() method 37 let elapsed = self.elapsed(); in print_elapsed() localVariable 38 let time = (elapsed.as_secs() as f64) * 1e3 + in print_elapsed() 39 (elapsed.subsec_nanos() as f64) / 1e6; in print_elapsed()
|
/third_party/skia/third_party/externals/libjpeg-turbo/ |
D | tjbench.c | 151 double elapsed, elapsedDecode; in decomp() local 193 elapsed = elapsedDecode = 0.; in decomp() 222 elapsed += getTime() - start; in decomp() 225 if (elapsed >= benchTime) break; in decomp() 226 } else if (elapsed >= warmup) { in decomp() 228 elapsed = elapsedDecode = 0.; in decomp() 231 if (doYUV) elapsed -= elapsedDecode; in decomp() 238 sigfig((double)(w * h) / 1000000. * (double)iter / elapsed, 4, in decomp() 248 doYUV ? "Decomp to YUV" : "Decompress ", (double)iter / elapsed); in decomp() 251 (double)(w * h) / 1000000. * (double)iter / elapsed); in decomp() [all …]
|
/third_party/python/Lib/test/test_asyncio/ |
D | test_windows_events.py | 169 elapsed = self.loop.time() - start 175 self.assertTrue(0.45 <= elapsed <= 0.9, elapsed) 184 elapsed = self.loop.time() - start 188 self.assertTrue(0 <= elapsed < 0.3, elapsed) 205 elapsed = self.loop.time() - start 206 self.assertTrue(0 <= elapsed < 0.1, elapsed)
|
/third_party/libfuse/test/ |
D | util.py | 39 elapsed = 0 40 while elapsed < 30: 46 elapsed += 0.1 84 elapsed = 0 85 while elapsed < 30: 92 elapsed += 0.1
|
/third_party/node/benchmark/ |
D | common.js | 176 http_options, (error, code, used_benchmarker, result, elapsed) => { 185 this.report(result, elapsed); 272 const elapsed = time - this._time; 273 const rate = operations / (Number(elapsed) / 1e9); 274 this.report(rate, elapsed); 277 report(rate, elapsed) { argument 282 time: nanoSecondsToString(elapsed),
|
/third_party/node/deps/v8/src/logging/ |
D | counters-scopes.h | 143 base::TimeDelta elapsed = timer_.Elapsed(now); in StopInternal() local 144 histogram_->AddTimedSample(elapsed); in StopInternal() 145 if (isolate_) RecordLongTaskTime(elapsed); in StopInternal() 174 void RecordLongTaskTime(base::TimeDelta elapsed) const { in RecordLongTaskTime() argument 177 elapsed.InMicroseconds(); in RecordLongTaskTime()
|
/third_party/node/deps/npm/node_modules/@npmcli/arborist/bin/lib/ |
D | timers.js | 18 const elapsed = Number(process.hrtime.bigint() - timers.get(name)) constant 20 finished.set(name, elapsed) 22 … log.info('timeEnd', `${name} ${elapsed / 1e9}s`, log.meta({ force: options.timing === 'always' }))
|
/third_party/ltp/testcases/kernel/fs/read_all/ |
D | read_all.c | 234 int elapsed; in read_test() local 253 elapsed = worker_elapsed(worker); in read_test() 259 pid, worker, path, count, buf, elapsed); in read_test() 263 pid, worker, path, elapsed); in read_test() 267 pid, worker, path, elapsed); in read_test() 431 int elapsed; in try_push_work() local 443 elapsed = worker_elapsed(worker); in try_push_work() 445 if (elapsed > worker_timeout) { in try_push_work() 449 w->pid, worker, elapsed); in try_push_work()
|
/third_party/pulseaudio/src/daemon/ |
D | cpulimit.c | 118 pa_usec_t now, elapsed; in signal_handler() local 125 elapsed = now - last_time; in signal_handler() 128 …%% CPU\n", ((double) CPUTIME_INTERVAL_SOFT * (double) PA_USEC_PER_SEC) / (double) elapsed * 100.0); in signal_handler() 132 …if (((double) CPUTIME_INTERVAL_SOFT * (double) PA_USEC_PER_SEC) >= ((double) elapsed * (double) CP… in signal_handler()
|
/third_party/skia/samplecode/ |
D | SampleTiming.cpp | 47 auto elapsed = std::chrono::steady_clock::now() - start; in onDrawContent() local 49 cost[y][x] = elapsed.count(); in onDrawContent() 81 auto elapsed = std::chrono::steady_clock::now() - start; in onDrawContent() local 83 cost[y][x] = elapsed.count(); in onDrawContent()
|
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/java/com/mobileer/miditools/synth/ |
D | SimpleAudioOutput.java | 181 long elapsed = now - previousBeginTime; in endCpuLoadInterval() local 183 filteredCpuInterval = ((filteredCpuInterval * LOAD_FILTER_SCALER) + elapsed) in endCpuLoadInterval() 191 long elapsed = now - previousBeginTime; in beginCpuLoadInterval() local 193 filteredTotalInterval = ((filteredTotalInterval * LOAD_FILTER_SCALER) + elapsed) in beginCpuLoadInterval()
|
/third_party/rust/crates/nix/test/sys/ |
D | test_timerfd.rs | 23 let millis = before.elapsed().as_millis(); in test_timerfd_oneshot() 45 let start_delay = before.elapsed().as_millis(); in test_timerfd_interval() 50 let interval_delay = before.elapsed().as_millis(); in test_timerfd_interval()
|
/third_party/rust/crates/syn/benches/ |
D | rust.rs | 135 begin.elapsed() in exec() 174 let elapsed = exec(f); in main() localVariable 177 elapsed.as_secs(), in main() 178 elapsed.subsec_millis(), in main()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/ |
D | vktPipelineCreationCacheControlTests.cpp | 78 duration elapsed; member 102 duration elapsed, in validateResults() argument 118 const auto qpResult = validator(result, pipelines, elapsed, reason); in validateResults() 238 qpTestResult checkElapsedTime(VkResult, const vector<UniquePipeline>&, duration elapsed, string& re… in checkElapsedTime() argument 241 DE_UNREF(elapsed); in checkElapsedTime() 252 if (elapsed > ALLOWED_TIME) in checkElapsedTime() 255 reason = ERROR_MSG.format(ALLOWED_TIME.count(), duration_cast<microseconds>(elapsed).count()); in checkElapsedTime() 866 const auto elapsed = high_resolution_clock::now() - timeStart; in timePipelineCreation() local 867 return {result, elapsed}; in timePipelineCreation() 904 …const auto status = validateResults(timedResult.result, pipelines, timedResult.elapsed, i.validato… in testInstance() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/pipeline/ |
D | vktPipelineCreationCacheControlTests.cpp | 78 duration elapsed; member 102 duration elapsed, in validateResults() argument 118 const auto qpResult = validator(result, pipelines, elapsed, reason); in validateResults() 238 qpTestResult checkElapsedTime(VkResult, const vector<UniquePipeline>&, duration elapsed, string& re… in checkElapsedTime() argument 241 DE_UNREF(elapsed); in checkElapsedTime() 252 if (elapsed > ALLOWED_TIME) in checkElapsedTime() 255 reason = ERROR_MSG.format(ALLOWED_TIME.count(), duration_cast<microseconds>(elapsed).count()); in checkElapsedTime() 866 const auto elapsed = high_resolution_clock::now() - timeStart; in timePipelineCreation() local 867 return {result, elapsed}; in timePipelineCreation() 904 …const auto status = validateResults(timedResult.result, pipelines, timedResult.elapsed, i.validato… in testInstance() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/ |
D | notification_test.cc | 78 const absl::Duration elapsed = absl::Now() - start; in BasicTests() local 83 EXPECT_LE(delay - slop, elapsed) in BasicTests() 84 << "WaitForNotificationWithTimeout returned " << delay - elapsed in BasicTests()
|
D | mutex_test.cc | 239 absl::Duration elapsed = absl::Now() - start; in TestTime() local 241 absl::Seconds(0.9) <= elapsed && elapsed <= absl::Seconds(2.0), in TestTime() 252 elapsed = absl::Now() - start; in TestTime() 254 absl::Seconds(0.9) <= elapsed && elapsed <= absl::Seconds(2.0), in TestTime() 268 elapsed = absl::Now() - start; in TestTime() 270 absl::Seconds(3.9) <= elapsed && elapsed <= absl::Seconds(6.0), in TestTime() 281 elapsed = absl::Now() - start; in TestTime() 283 absl::Seconds(0.9) <= elapsed && elapsed <= absl::Seconds(2.0), in TestTime() 296 elapsed = absl::Now() - start; in TestTime() 297 ABSL_RAW_CHECK(absl::Seconds(0.9) <= elapsed && in TestTime() [all …]
|
/third_party/libuv/test/ |
D | test-condvar.c | 235 uint64_t elapsed; in TEST_IMPL() local 260 elapsed = after - before; in TEST_IMPL() 261 ASSERT(0.75 * timeout <= elapsed); /* 1.0 too large for Windows. */ in TEST_IMPL() 262 ASSERT(elapsed <= 5.0 * timeout); /* MacOS has reported failures up to 1.75. */ in TEST_IMPL()
|
/third_party/skia/tests/ |
D | skia_test.cpp | 68 SkMSec elapsed, in endTest() argument 80 time.printf("%5dms ", elapsed); in endTest() 121 SkMSec elapsed = timer.elapsedMsInt(); in operator ()() local 125 fStatus->endTest(fTest.fName, !reporter.fError, elapsed, reporter.fTestCount); in operator ()()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/internal/ |
D | per_thread_sem_test.cc | 159 const absl::Duration elapsed = absl::Now() - start; in TEST_F() local 163 EXPECT_LE(delay - slop, elapsed) in TEST_F() 164 << "Wait returned " << delay - elapsed in TEST_F()
|
/third_party/rust/crates/syn/tests/ |
D | test_round_trip.rs | 76 let (krate, elapsed) = match syn::parse_file(&content) { in test() 77 Ok(krate) => (krate, start.elapsed()), in test() 129 elapsed.as_secs() * 1000 + u64::from(elapsed.subsec_nanos()) / 1_000_000 in test()
|