/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/ |
D | StopwatchTest.java | 47 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/ |
D | StopwatchTest.java | 48 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/ |
D | timevar.c | 144 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/ |
D | strace-graph | 280 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/ |
D | elapsed-timer.h | 58 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/ |
D | blkparse_fmt.c | 163 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/ |
D | FadeDrawableComponent.java | 85 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/vboot_reference/utility/ |
D | tpm-dad-lock | 42 elapsed=$(( $after - $before )) 43 if [ $elapsed -gt $max ]; then 44 echo delay of $elapsed seconds after $attempts attempts 45 max=$elapsed
|
/external/v8/benchmarks/ |
D | base.js | 203 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/protobuf/benchmarks/ |
D | ProtoBench.java | 164 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/openssh/ |
D | progressmeter.c | 125 double elapsed; in refresh_progress_meter() local 139 elapsed = now - last_update; in refresh_progress_meter() 141 elapsed = now - start; in refresh_progress_meter() 148 if (elapsed != 0) in refresh_progress_meter() 149 cur_speed = (transferred / elapsed); in refresh_progress_meter() 194 stalled += elapsed; in refresh_progress_meter() 206 seconds = elapsed; in refresh_progress_meter()
|
/external/v8/test/perf-test/Collections/ |
D | base.js | 277 var elapsed = 0; 283 i<benchmark.deterministicIterations : elapsed < 1000); i++) { 285 elapsed = new Date() - start; 289 data.elapsed += elapsed; 295 data = { runs: 0, elapsed: 0 }; property 300 return { runs: 0, elapsed: 0 }; 305 var usec = (data.elapsed * 1000) / data.runs;
|
/external/fio/ |
D | time.c | 113 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/ |
D | camera.c | 59 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/ |
D | SocketTimeoutTest.java | 80 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/ |
D | portable_timer.hh | 68 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/lldb/test/ |
D | lldbbench.py | 68 elapsed = self.__stop__ - self.__start__ 69 self.__total_elapsed__ += elapsed 71 self.__nums__.append(elapsed)
|
/external/netperf/ |
D | netcpu_pstat.c | 106 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()
|
D | netcpu_perfstat.c | 123 elapsed, in calibrate_idle_rate() local 203 elapsed = (float)sec + ((float)usec/(float)1000000.0); in calibrate_idle_rate() 227 fprintf(where,"\telapsed time = %g\n",elapsed); in calibrate_idle_rate() 248 (float)(secondcnt[j] - firstcnt[j])/elapsed : in calibrate_idle_rate() 249 (float)(secondcnt[j]-firstcnt[j]+MAXLONG)/elapsed; in calibrate_idle_rate()
|
D | netcpu_kstat.c | 257 elapsed, in calibrate_idle_rate() local 302 elapsed = (float)sec + ((float)usec/(float)1000000.0); in calibrate_idle_rate() 307 fprintf(where,"\telapsed time = %g\n",elapsed); in calibrate_idle_rate() 327 (float)(secondcnt[j] - firstcnt[j])/elapsed : in calibrate_idle_rate() 328 (float)(secondcnt[j]-firstcnt[j]+MAXLONG)/elapsed; in calibrate_idle_rate()
|
D | netcpu_looper.c | 492 elapsed, in calibrate_idle_rate() local 530 elapsed = (float)sec + ((float)usec/(float)1000000.0); in calibrate_idle_rate() 535 fprintf(where,"\telapsed time = %g\n",elapsed); in calibrate_idle_rate() 555 (float)(secondcnt[j] - firstcnt[j])/elapsed : in calibrate_idle_rate() 556 (float)(secondcnt[j]-firstcnt[j]+MAXLONG)/elapsed; in calibrate_idle_rate()
|
/external/eigen/demos/mandelbrot/ |
D | mandelbrot.cpp | 141 int elapsed = time.elapsed(); in paintEvent() local 145 float speed = elapsed ? float(total_iter)*1000/elapsed : 0; in paintEvent() 148 << elapsed << " ms, " in paintEvent()
|
/external/skia/tests/ |
D | skia_test.cpp | 43 SkMSec elapsed, in endTest() argument 57 time.printf("%5dms ", elapsed); in endTest() 102 SkMSec elapsed = SkTime::GetMSecs() - start; in run() local 106 fStatus->endTest(fTest.name, !reporter.fError, elapsed, in run()
|
/external/libvncserver/test/ |
D | tjbench.c | 85 double start, elapsed; in decomptest() local 120 for(i=0, start=gettime(); (elapsed=gettime()-start)<benchtime; i++) in decomptest() 142 sigfig((double)(w*h)/1000000.*(double)i/elapsed, 4, tempstr, 1024)); in decomptest() 146 printf("D--> Frame rate: %f fps\n", (double)i/elapsed); in decomptest() 148 (double)(w*h)/1000000.*(double)i/elapsed); in decomptest() 214 double start, elapsed; in dotest() local 263 for(i=0, start=gettime(); (elapsed=gettime()-start)<benchtime; i++) in dotest() 289 sigfig((double)(w*h)/1000000.*(double)i/elapsed, 4, tempstr, 1024), in dotest() 298 printf("C--> Frame rate: %f fps\n", (double)i/elapsed); in dotest() 303 (double)(w*h)/1000000.*(double)i/elapsed); in dotest() [all …]
|
/external/llvm/utils/lit/lit/ |
D | Test.py | 118 def __init__(self, code, output='', elapsed=None): argument 124 self.elapsed = elapsed 250 xml += " time='%.2f'" % (self.result.elapsed,)
|