Home
last modified time | relevance | path

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

1234567

/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/
DStopwatchTest.java47 assertEquals(0, unstartedStopwatch.elapsed(NANOSECONDS)); in testCreateUnstarted()
52 assertEquals(0, stopwatch.elapsed(NANOSECONDS)); in testInitialState()
101 assertEquals(0, stopwatch.elapsed(NANOSECONDS)); in testReset_new()
104 assertEquals(3, stopwatch.elapsed(NANOSECONDS)); in testReset_new()
110 assertEquals(0, stopwatch.elapsed(NANOSECONDS)); in testReset_whileRunning()
112 assertEquals(2, stopwatch.elapsed(NANOSECONDS)); in testReset_whileRunning()
116 assertEquals(0, stopwatch.elapsed(NANOSECONDS)); in testReset_whileRunning()
122 assertEquals(0, stopwatch.elapsed(NANOSECONDS)); in testElapsed_whileRunning()
125 assertEquals(345, stopwatch.elapsed(NANOSECONDS)); in testElapsed_whileRunning()
134 assertEquals(4, stopwatch.elapsed(NANOSECONDS)); in testElapsed_notRunning()
[all …]
/external/guava/guava-tests/test/com/google/common/base/
DStopwatchTest.java48 assertEquals(0, unstartedStopwatch.elapsed(NANOSECONDS)); in testCreateUnstarted()
53 assertEquals(0, stopwatch.elapsed(NANOSECONDS)); in testInitialState()
102 assertEquals(0, stopwatch.elapsed(NANOSECONDS)); in testReset_new()
105 assertEquals(3, stopwatch.elapsed(NANOSECONDS)); in testReset_new()
111 assertEquals(0, stopwatch.elapsed(NANOSECONDS)); in testReset_whileRunning()
113 assertEquals(2, stopwatch.elapsed(NANOSECONDS)); in testReset_whileRunning()
117 assertEquals(0, stopwatch.elapsed(NANOSECONDS)); in testReset_whileRunning()
123 assertEquals(0, stopwatch.elapsed(NANOSECONDS)); in testElapsed_whileRunning()
126 assertEquals(345, stopwatch.elapsed(NANOSECONDS)); in testElapsed_whileRunning()
135 assertEquals(4, stopwatch.elapsed(NANOSECONDS)); in testElapsed_notRunning()
[all …]
/external/bison/lib/
Dtimevar.c144 struct timevar_time_def elapsed; member
307 timevar_accumulate (&stack->timevar->elapsed, &start_time, &now);
353 timevar_accumulate (&popped->timevar->elapsed, &start_time, &now);
411 timevar_accumulate (&tv->elapsed, &tv->start_time, &now);
418 timevar_get (timevar, elapsed) in timevar_get() argument
420 struct timevar_time_def *elapsed;
425 *elapsed = tv->elapsed;
431 timevar_accumulate (elapsed, &tv->start_time, &now);
437 timevar_accumulate (elapsed, &start_time, &now);
452 struct timevar_time_def *total = &timevars[TV_TOTAL].elapsed;
[all …]
/external/strace/
Dstrace-graph280 my $elapsed;
287 $elapsed = $pr{$pid}{end} - $pr{$pid}{start};
288 $elapsed /= $scale_factor;
290 $elapsed = sprintf("%0.02f", $elapsed);
292 $elapsed = int $elapsed;
300 if (defined $elapsed) {
301 print "$lead [$elapsed] @$argv\n";
302 undef $elapsed;
/external/v8/src/base/platform/
Delapsed-timer.h58 TimeDelta elapsed = ticks - start_ticks_; in Restart() local
59 DCHECK(elapsed.InMicroseconds() >= 0); in Restart()
62 return elapsed; in Restart()
69 TimeDelta elapsed = Now() - start_ticks_; in Elapsed() local
70 DCHECK(elapsed.InMicroseconds() >= 0); in Elapsed()
71 return elapsed; in Elapsed()
/external/blktrace/
Dblkparse_fmt.c163 struct blk_io_trace *t, unsigned long long elapsed, in print_field() argument
238 if (elapsed == -1ULL) { in print_field()
242 fprintf(ofp, strcat(format, "llu"), elapsed / 1000); in print_field()
257 struct blk_io_trace *t, unsigned long long elapsed, in parse_field() argument
277 print_field(act, pci, t, elapsed, pdu_len, pdu_buf, *p++, in parse_field()
284 struct blk_io_trace *t, unsigned long long elapsed, in process_default() argument
321 if (elapsed != -1ULL) { in process_default()
325 t_sec(t), elapsed, t->error); in process_default()
329 elapsed, t->error); in process_default()
355 if (elapsed != -1ULL) { in process_default()
[all …]
/external/replicaisland/src/com/replica/replicaisland/
DFadeDrawableComponent.java85 float elapsed = currentTime - mStartTime; in update() local
87 if (mLoopType != LOOP_TYPE_NONE && elapsed > mDuration) { in update()
89 elapsed = endTime - currentTime; in update()
98 if (elapsed > mDuration) { in update()
100 } else if (elapsed != 0.0f) { in update()
102 opacity = Lerp.lerp(mInitialOpacity, mTargetOpacity, mDuration, elapsed); in update()
104 opacity = Lerp.ease(mInitialOpacity, mTargetOpacity, mDuration, elapsed); in update()
/external/tpm2/
DClock.c75 unsigned long long elapsed; in _plat__ClockTimeElapsed() local
77 elapsed = ((currentClock - s_initClock) * CLOCK_NOMINAL) / s_adjustRate; in _plat__ClockTimeElapsed()
78 s_initClock += (elapsed * s_adjustRate) / CLOCK_NOMINAL; in _plat__ClockTimeElapsed()
84 elapsed *= DEBUG_TIME_MULTIPLIER in _plat__ClockTimeElapsed()
86 return elapsed; in _plat__ClockTimeElapsed()
DTime.c107 UINT64 elapsed; in TimeUpdateToCurrent() local
115 elapsed = _plat__ClockTimeElapsed(); in TimeUpdateToCurrent()
116 go.clock += elapsed; in TimeUpdateToCurrent()
117 g_time += elapsed; in TimeUpdateToCurrent()
/external/autotest/frontend/tko/preconfigs/metrics/
Dperf6 name[0]: kernbench (elapsed)
11 seriesFilters[0][0][condition]: = 'elapsed'
51 inverted: kernbench (elapsed)
57 name[0]: kernbench (elapsed)
62 seriesFilters[0][0][condition]: = 'elapsed'
102 inverted: kernbench (elapsed)
108 name[0]: kernbench (elapsed)
113 seriesFilters[0][0][condition]: = 'elapsed'
153 inverted: kernbench (elapsed)
/external/vboot_reference/utility/
Dtpm-dad-lock42 elapsed=$(( $after - $before ))
43 if [ $elapsed -gt $max ]; then
44 echo delay of $elapsed seconds after $attempts attempts
45 max=$elapsed
/external/v8/benchmarks/
Dbase.js203 var elapsed = 0;
205 for (var n = 0; elapsed < 1000; n++) {
207 elapsed = new Date() - start;
211 data.elapsed += elapsed;
219 return { runs: 0, elapsed: 0 };
224 var usec = (data.elapsed * 1000) / data.runs;
/external/webrtc/webrtc/base/
Dprofiler.cc62 double elapsed = static_cast<double>(stop_time - current_start_time_) / in Stop() local
64 total_time_ += elapsed; in Stop()
66 minimum_ = maximum_ = elapsed; in Stop()
68 minimum_ = std::min(minimum_, elapsed); in Stop()
69 maximum_ = std::max(maximum_, elapsed); in Stop()
74 double delta = elapsed - mean_; in Stop()
76 sum_of_squared_differences_ += delta * (elapsed - mean_); in Stop()
/external/protobuf/benchmarks/
DProtoBench.java164 long elapsed = timeAction(action, iterations); in benchmark() local
165 while (elapsed < MIN_SAMPLE_TIME_MS) { in benchmark()
167 elapsed = timeAction(action, iterations); in benchmark()
172 iterations = (int) ((TARGET_TIME_MS / (double) elapsed) * iterations); in benchmark()
173 elapsed = timeAction(action, iterations); in benchmark()
175 + (elapsed/1000f) + "s; " in benchmark()
176 + (iterations * dataSize) / (elapsed * 1024 * 1024 / 1000f) in benchmark()
/external/autotest/client/tools/
Davgtime23 (user, system, elapsed, cpu) = line.split()[0:4]
26 m = re.match(r'(\d+):([\d\.]+)', elapsed)
27 elapsed = 60*int(m.group(1)) + float(m.group(2)) variable
30 list.append((user, system, elapsed, cpu))
/external/libjpeg-turbo/
Dtjbench.c111 double elapsed, elapsedDecode; in decomp() local
150 elapsed=elapsedDecode=0.; in decomp()
182 elapsed+=gettime()-start; in decomp()
183 if(elapsed>=benchtime) break; in decomp()
186 if(doyuv) elapsed-=elapsedDecode; in decomp()
194 sigfig((double)(w*h)/1000000.*(double)iter/elapsed, 4, tempstr, 1024), in decomp()
205 doyuv? "Decomp to YUV":"Decompress ", (double)iter/elapsed); in decomp()
207 (double)(w*h)/1000000.*(double)iter/elapsed); in decomp()
282 double start, elapsed, elapsedEncode; in fullTest() local
339 elapsed=elapsedEncode=0.; in fullTest()
[all …]
/external/v8/test/js-perf-test/
Dbase.js277 var elapsed = 0;
283 i<benchmark.deterministicIterations : elapsed < 1000); i++) {
285 elapsed = new Date() - start;
289 data.elapsed += elapsed;
295 data = { hectoruns: 0, elapsed: 0 }; property
300 return { hectoruns: 0, elapsed: 0 };
305 var usec = (data.elapsed * 10) / data.hectoruns;
/external/libjpeg-turbo/java/
DTJBench.java138 double elapsed, elapsedDecode; in decomp() local
166 elapsed = elapsedDecode = 0.0; in decomp()
189 elapsed += getTime() - start; in decomp()
190 if (elapsed >= benchTime) in decomp()
195 elapsed -= elapsedDecode; in decomp()
205 sigFig((double)(w * h) / 1000000. * (double)iter / elapsed, 4), in decomp()
215 (double)iter / elapsed); in decomp()
217 (double)(w * h) / 1000000. * (double)iter / elapsed); in decomp()
278 double start, elapsed, elapsedEncode; in fullTest() local
323 elapsed = elapsedEncode = 0.0; in fullTest()
[all …]
/external/fio/
Dtime.c113 unsigned long elapsed; in fio_time_init() local
120 elapsed = utime_since_now(&tv); in fio_time_init()
122 if (elapsed > ns_granularity) in fio_time_init()
123 ns_granularity = elapsed; in fio_time_init()
/external/libvncserver/examples/
Dcamera.c59 double elapsed, dnow, dthen; in TimeToTakePicture() local
65 elapsed = dnow - dthen; in TimeToTakePicture()
67 if (elapsed > PICTURE_TIMEOUT) in TimeToTakePicture()
69 return elapsed > PICTURE_TIMEOUT; in TimeToTakePicture()
/external/okhttp/okio/okio/src/test/java/okio/
DSocketTimeoutTest.java80 long elapsed = System.nanoTime() - start; in writeWithTimeout() local
83 assertTrue("elapsed: " + elapsed, TimeUnit.NANOSECONDS.toMillis(elapsed) >= 500); in writeWithTimeout()
84 assertTrue("elapsed: " + elapsed, TimeUnit.NANOSECONDS.toMillis(elapsed) <= 750); in writeWithTimeout()
/external/eigen/bench/btl/generic_bench/timers/
Dportable_timer.hh68 double elapsed() { in elapsed() function in Portable_Timer
74 double user_time() { return elapsed(); } in user_time()
125 double elapsed() in elapsed() function in Portable_Timer
/external/skia/tools/kilobench/
Dkilobench.cpp306 double elapsed = now_ms() - start; in sanity() local
307 return elapsed > kMinElapsed; in sanity()
347 double elapsed = kilobench::now_ms() - start; in timingLoop() local
350 fTimings.push_back(elapsed); in timingLoop()
433 double elapsed = now_ms() - start; in time() local
439 return elapsed; in time()
448 double elapsed = 0; in setup_gpu_bench() local
459 elapsed = time(loops, bench, target, nullptr); in setup_gpu_bench()
461 } while (elapsed < FLAGS_gpuMs); in setup_gpu_bench()
464 loops = (int)ceil(loops * FLAGS_gpuMs / elapsed); in setup_gpu_bench()
/external/netperf/src/
Dnetcpu_pstat.c106 elapsed, in calibrate_idle_rate() local
169 elapsed = (float)sec + ((float)usec/(float)1000000.0); in calibrate_idle_rate()
174 fprintf(where,"\telapsed time = %g\n",elapsed); in calibrate_idle_rate()
199 (float)(secondcnt[j] - firstcnt[j] )/elapsed : in calibrate_idle_rate()
200 (float)(secondcnt[j] - firstcnt[j] + LONG_LONG_MAX)/elapsed; in calibrate_idle_rate()
Dnetcpu_perfstat.c123 elapsed, in calibrate_idle_rate() local
203 elapsed = (float)sec + ((float)usec/(float)1000000.0); in calibrate_idle_rate()
231 elapsed); in calibrate_idle_rate()
252 (float)(secondcnt[j] - firstcnt[j])/elapsed : in calibrate_idle_rate()
253 (float)(secondcnt[j]-firstcnt[j]+MAXLONG)/elapsed; in calibrate_idle_rate()

1234567