Home
last modified time | relevance | path

Searched refs:elapsed (Results 1 – 25 of 176) sorted by relevance

12345678

/third_party/node/deps/v8/src/base/platform/
Delapsed-timer.h65 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/
Dbench-utils.h45 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/
Dclock_settime01.c57 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/
Dtst_wallclock.c46 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/
Dtime.rs31 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/
Dtjbench.c151 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/
Dtest_windows_events.py169 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/
Dutil.py39 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/
Dcommon.js176 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/
Dcounters-scopes.h143 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/
Dtimers.js18 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/
Dread_all.c234 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/
Dcpulimit.c118 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/
DSampleTiming.cpp47 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/
DSimpleAudioOutput.java181 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/
Dtest_timerfd.rs23 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/
Drust.rs135 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/
DvktPipelineCreationCacheControlTests.cpp78 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/
DvktPipelineCreationCacheControlTests.cpp78 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/
Dnotification_test.cc78 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()
Dmutex_test.cc239 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/
Dtest-condvar.c235 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/
Dskia_test.cpp68 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/
Dper_thread_sem_test.cc159 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/
Dtest_round_trip.rs76 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()

12345678