Home
last modified time | relevance | path

Searched refs:elapsed (Results 1 - 25 of 83) sorted by relevance

1234

/third_party/node/deps/v8/src/base/platform/
H A Delapsed-timer.h55 // Restarts the timer and returns the time elapsed since the previous start.
56 // This method is equivalent to obtaining the elapsed time with |Elapsed()|
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()
97 // Returns the time elapsed sinc
104 TimeDelta elapsed = now - start_ticks(); Elapsed() local
[all...]
/third_party/vixl/benchmarks/aarch64/
H A 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/rust/crates/bindgen/bindgen/
H A Dtime.rs30 /// Returns the time elapsed since the timer's creation
31 pub fn elapsed(&self) -> Duration { in elapsed() functions
37 let elapsed = self.elapsed(); in print_elapsed()
38 let time = (elapsed.as_secs() as f64) * 1e3 + in print_elapsed()
39 (elapsed.subsec_nanos() as f64) / 1e6; in print_elapsed()
/third_party/ltp/lib/
H A 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/ltp/testcases/kernel/syscalls/clock_settime/
H A 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/skia/third_party/externals/libjpeg-turbo/
H A 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()
326 double start, elapsed, elapsedEncode; fullTest() local
537 double start, elapsed; decompTest() local
[all...]
/third_party/libfuse/test/
H A 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/
H A Dcommon.js176 http_options, (error, code, used_benchmarker, result, elapsed) => {
185 this.report(result, elapsed);
246 // Get elapsed time now and do error checking later for accuracy.
272 const elapsed = time - this._time;
273 const rate = operations / (Number(elapsed) / 1e9);
274 this.report(rate, elapsed);
277 report(rate, elapsed) {
282 time: nanoSecondsToString(elapsed),
/third_party/skia/samplecode/
H A DSampleTiming.cpp47 auto elapsed = std::chrono::steady_clock::now() - start; variable
49 cost[y][x] = elapsed.count();
81 auto elapsed = std::chrono::steady_clock::now() - start; variable
83 cost[y][x] = elapsed.count();
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/java/com/mobileer/miditools/synth/
H A DSimpleAudioOutput.java181 long elapsed = now - previousBeginTime; in endCpuLoadInterval()
183 filteredCpuInterval = ((filteredCpuInterval * LOAD_FILTER_SCALER) + elapsed) in endCpuLoadInterval()
191 long elapsed = now - previousBeginTime; in beginCpuLoadInterval()
193 filteredTotalInterval = ((filteredTotalInterval * LOAD_FILTER_SCALER) + elapsed) in beginCpuLoadInterval()
/third_party/ltp/testcases/kernel/fs/read_all/
H A Dread_all.c234 int elapsed; in read_test() local
253 elapsed = worker_elapsed(worker); in read_test()
258 "Worker %d (%d): read(%s, buf) = %zi, buf = %s, elapsed = %dus", in read_test()
259 pid, worker, path, count, buf, elapsed); in read_test()
262 "Worker %d (%d): read(%s) = EOF, elapsed = %dus", in read_test()
263 pid, worker, path, elapsed); in read_test()
266 "Worker %d (%d): read(%s), elapsed = %dus", in read_test()
267 pid, worker, path, elapsed); in read_test()
431 int elapsed; in try_push_work() local
443 elapsed in try_push_work()
[all...]
/third_party/python/Lib/test/test_asyncio/
H A 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/node/deps/v8/src/logging/
H A 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()
177 elapsed.InMicroseconds(); in RecordLongTaskTime()
/third_party/rust/crates/nix/test/sys/
H A 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/pulseaudio/src/daemon/
H A Dcpulimit.c118 pa_usec_t now, elapsed; in signal_handler() local
125 elapsed = now - last_time; in signal_handler()
128 pa_snprintf(t, sizeof(t), "Using %0.1f%% 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) CPUTIME_PERCENT / 100.0)) { in signal_handler()
/third_party/rust/crates/syn/benches/
H A Drust.rs135 begin.elapsed() in exec()
174 let elapsed = exec(f); in main()
176 "elapsed={}.{:03}s", in main()
177 elapsed.as_secs(), in main()
178 elapsed.subsec_millis(), in main()
/third_party/rust/crates/syn/tests/
H A 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()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/pipeline/
H A DvktPipelineCreationCacheControlTests.cpp73 * \brief Paired Vulkan API result with elapsed duration
78 duration elapsed; member
86 * \param elapsed - high_resolution_clock::duration of time elapsed in API
102 duration elapsed, in validateResults()
118 const auto qpResult = validator(result, pipelines, elapsed, reason); in validateResults()
235 * \brief Generate an error if elapsed time exceeds MAX_TIME
238 qpTestResult checkElapsedTime(VkResult, const vector<UniquePipeline>&, duration elapsed, string& reason) in checkElapsedTime() argument
241 DE_UNREF(elapsed); in checkElapsedTime()
252 if (elapsed > ALLOWED_TIM in checkElapsedTime()
100 validateResults(VkResult result, const pipelines_t& pipelines, duration elapsed, const ValidatorArray& validators) validateResults() argument
866 const auto elapsed = high_resolution_clock::now() - timeStart; timePipelineCreation() local
1047 const auto elapsed = high_resolution_clock::now() - timeStart; timePipelineCreation() local
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/internal/
H A 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/skia/third_party/externals/abseil-cpp/absl/synchronization/
H A 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()
/third_party/skia/tests/
H A Dskia_test.cpp68 SkMSec elapsed, in endTest()
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 ()()
66 endTest(const char* testName, bool success, SkMSec elapsed, int testCount) endTest() argument
/third_party/icu/icu4c/source/test/perf/ucnvavailperf/
H A Ducnvavailperf.cpp123 double elapsed = utimer_getElapsedSeconds(&start_time); in main() local
125 printf("ucnv_countAvailable() took %g seconds to figure this out.\n", elapsed); in main()
/third_party/rust/crates/once_cell/examples/
H A Dregex.rs44 println!("slow: {:?}", t.elapsed()); in main()
48 println!("fast: {:?}", t.elapsed()); in main()
H A Dbench_vs_lazy_static.rs22 start.elapsed() in main()
32 start.elapsed() in main()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
H A DvktPipelineCreationCacheControlTests.cpp73 * \brief Paired Vulkan API result with elapsed duration
78 duration elapsed; member
86 * \param elapsed - high_resolution_clock::duration of time elapsed in API
102 duration elapsed, in validateResults()
118 const auto qpResult = validator(result, pipelines, elapsed, reason); in validateResults()
235 * \brief Generate an error if elapsed time exceeds MAX_TIME
238 qpTestResult checkElapsedTime(VkResult, const vector<UniquePipeline>&, duration elapsed, string& reason) in checkElapsedTime() argument
241 DE_UNREF(elapsed); in checkElapsedTime()
252 if (elapsed > ALLOWED_TIM in checkElapsedTime()
100 validateResults(VkResult result, const pipelines_t& pipelines, duration elapsed, const ValidatorArray& validators) validateResults() argument
869 const auto elapsed = high_resolution_clock::now() - timeStart; timePipelineCreation() local
1065 const auto elapsed = high_resolution_clock::now() - timeStart; timePipelineCreation() local
[all...]

Completed in 11 milliseconds

1234