/external/guava/guava-tests/test/com/google/common/base/ |
D | StopwatchTest.java | 38 private final Stopwatch stopwatch = new Stopwatch(ticker); field in StopwatchTest 52 assertFalse(stopwatch.isRunning()); in testInitialState() 53 assertEquals(0, stopwatch.elapsed(NANOSECONDS)); in testInitialState() 57 assertSame(stopwatch, stopwatch.start()); in testStart() 58 assertTrue(stopwatch.isRunning()); in testStart() 62 stopwatch.start(); in testStart_whileRunning() 64 stopwatch.start(); in testStart_whileRunning() 68 assertTrue(stopwatch.isRunning()); in testStart_whileRunning() 72 stopwatch.start(); in testStop() 73 assertSame(stopwatch, stopwatch.stop()); in testStop() [all …]
|
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/ |
D | StopwatchTest.java | 37 private final Stopwatch stopwatch = new Stopwatch(ticker); field in StopwatchTest 51 assertFalse(stopwatch.isRunning()); in testInitialState() 52 assertEquals(0, stopwatch.elapsed(NANOSECONDS)); in testInitialState() 56 assertSame(stopwatch, stopwatch.start()); in testStart() 57 assertTrue(stopwatch.isRunning()); in testStart() 61 stopwatch.start(); in testStart_whileRunning() 63 stopwatch.start(); in testStart_whileRunning() 67 assertTrue(stopwatch.isRunning()); in testStart_whileRunning() 71 stopwatch.start(); in testStop() 72 assertSame(stopwatch, stopwatch.stop()); in testStop() [all …]
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | RateLimiterTest.java | 51 private final FakeStopwatch stopwatch = new FakeStopwatch(); field in RateLimiterTest 54 RateLimiter limiter = RateLimiter.create(stopwatch, 5.0); in testSimple() 118 RateLimiter limiter = RateLimiter.create(stopwatch, 5.0); in testSimpleWithWait() 120 stopwatch.sleepMillis(200); // U0.20, we are ready for the next request... in testSimpleWithWait() 127 RateLimiter limiter = RateLimiter.create(stopwatch, 5.0); in testSimpleAcquireReturnValues() 129 stopwatch.sleepMillis(200); // U0.20, we are ready for the next request... in testSimpleAcquireReturnValues() 136 RateLimiter limiter = RateLimiter.create(stopwatch, 5.0); in testSimpleAcquireEarliestAvailableIsInPast() 138 stopwatch.sleepMillis(400); in testSimpleAcquireEarliestAvailableIsInPast() 145 RateLimiter limiter = RateLimiter.create(stopwatch, 5.0); in testOneSecondBurst() 146 stopwatch.sleepMillis(1000); // max capacity reached in testOneSecondBurst() [all …]
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
D | RateLimiter.java | 137 static RateLimiter create(SleepingStopwatch stopwatch, double permitsPerSecond) { in create() argument 138 RateLimiter rateLimiter = new SmoothBursty(stopwatch, 1.0 /* maxBurstSeconds */); in create() 174 SleepingStopwatch stopwatch, double permitsPerSecond, long warmupPeriod, TimeUnit unit) { in create() argument 175 RateLimiter rateLimiter = new SmoothWarmingUp(stopwatch, warmupPeriod, unit); in create() 184 private final SleepingStopwatch stopwatch; field in RateLimiter 202 RateLimiter(SleepingStopwatch stopwatch) { in RateLimiter() argument 203 this.stopwatch = checkNotNull(stopwatch); in RateLimiter() 229 doSetRate(permitsPerSecond, stopwatch.readMicros()); in setRate() 274 stopwatch.sleepMicrosUninterruptibly(microsToWait); in acquire() 287 return reserveAndGetWaitLength(permits, stopwatch.readMicros()); in reserve() [all …]
|
D | SmoothRateLimiter.java | 230 SmoothWarmingUp(SleepingStopwatch stopwatch, long warmupPeriod, TimeUnit timeUnit) { in SmoothWarmingUp() argument 231 super(stopwatch); in SmoothWarmingUp() 284 SmoothBursty(SleepingStopwatch stopwatch, double maxBurstSeconds) { in SmoothBursty() argument 285 super(stopwatch); in SmoothBursty() 332 private SmoothRateLimiter(SleepingStopwatch stopwatch) { in SmoothRateLimiter() argument 333 super(stopwatch); in SmoothRateLimiter()
|
D | ServiceManager.java | 483 Stopwatch stopwatch = startupTimers.get(service); in tryStartTiming() local 484 if (stopwatch == null) { in tryStartTiming() 644 Stopwatch stopwatch = startupTimers.get(service); in transitionService() local 645 if (stopwatch == null) { in transitionService() 647 stopwatch = Stopwatch.createStarted(); in transitionService() 648 startupTimers.put(service, stopwatch); in transitionService() 650 if (to.compareTo(RUNNING) >= 0 && stopwatch.isRunning()) { in transitionService() 652 stopwatch.stop(); in transitionService() 654 logger.log(Level.FINE, "Started {0} in {1}.", new Object[] {service, stopwatch}); in transitionService()
|
/external/guice/core/src/com/google/inject/internal/ |
D | InternalInjectorCreator.java | 61 private final Stopwatch stopwatch = new Stopwatch(); field in InternalInjectorCreator 104 shells = shellBuilder.build(initializer, bindingData, stopwatch, errors); in build() 105 stopwatch.resetAndLog("Injector construction"); in build() 124 stopwatch.resetAndLog("Binding initialization"); in initializeStatically() 129 stopwatch.resetAndLog("Binding indexing"); in initializeStatically() 132 stopwatch.resetAndLog("Collecting injection requests"); in initializeStatically() 135 stopwatch.resetAndLog("Binding validation"); in initializeStatically() 138 stopwatch.resetAndLog("Static validation"); in initializeStatically() 141 stopwatch.resetAndLog("Instance member validation"); in initializeStatically() 147 stopwatch.resetAndLog("Provider verification"); in initializeStatically() [all …]
|
D | InjectorShell.java | 126 Stopwatch stopwatch, in build() argument 155 stopwatch.resetAndLog("Module execution"); in build() 161 stopwatch.resetAndLog("Interceptors creation"); in build() 171 stopwatch.resetAndLog("TypeListeners & ProvisionListener creation"); in build() 174 stopwatch.resetAndLog("Scopes creation"); in build() 177 stopwatch.resetAndLog("Converters creation"); in build() 188 stopwatch.resetAndLog("Binding creation"); in build() 191 stopwatch.resetAndLog("Module annotated method scanners creation"); in build() 200 injectorShells.addAll(builder.build(initializer, bindingData, stopwatch, errors)); in build() 202 stopwatch.resetAndLog("Private environment creation"); in build()
|
/external/libchrome/base/debug/ |
D | task_annotator.cc | 31 tracked_objects::TaskStopwatch stopwatch; in RunTask() local 32 stopwatch.Start(); in RunTask() 34 stopwatch.StartTime() - pending_task.EffectiveTimePosted(); in RunTask() 53 stopwatch.Stop(); in RunTask() 55 pending_task, stopwatch); in RunTask()
|
/external/libchrome/base/ |
D | tracked_objects_unittest.cc | 127 TaskStopwatch stopwatch; in TEST_F() local 193 TaskStopwatch stopwatch; in TEST_F() local 194 stopwatch.Start(); in TEST_F() 198 stopwatch.Stop(); in TEST_F() 200 ThreadData::TallyRunOnNamedThreadIfTracking(pending_task, stopwatch); in TEST_F() 461 TaskStopwatch stopwatch; in TEST_F() local 462 stopwatch.Start(); in TEST_F() 464 stopwatch.Stop(); in TEST_F() 466 ThreadData::TallyRunOnNamedThreadIfTracking(pending_task, stopwatch); in TEST_F() 490 TaskStopwatch stopwatch; in TEST_F() local [all …]
|
D | tracked_objects.cc | 499 const TaskStopwatch& stopwatch) { in TallyADeath() argument 500 int32_t run_duration = stopwatch.RunDurationMs(); in TallyADeath() 533 const TaskStopwatch& stopwatch) { in TallyRunOnNamedThreadIfTracking() argument 540 ThreadData* current_thread_data = stopwatch.GetThreadData(); in TallyRunOnNamedThreadIfTracking() 549 TrackedTime start_of_run = stopwatch.StartTime(); in TallyRunOnNamedThreadIfTracking() 555 current_thread_data->TallyADeath(*births, queue_duration, stopwatch); in TallyRunOnNamedThreadIfTracking() 562 const TaskStopwatch& stopwatch) { in TallyRunOnWorkerThreadIfTracking() argument 578 ThreadData* current_thread_data = stopwatch.GetThreadData(); in TallyRunOnWorkerThreadIfTracking() 582 TrackedTime start_of_run = stopwatch.StartTime(); in TallyRunOnWorkerThreadIfTracking() 587 current_thread_data->TallyADeath(*births, queue_duration, stopwatch); in TallyRunOnWorkerThreadIfTracking() [all …]
|
D | run_loop.cc | 33 tracked_objects::TaskStopwatch stopwatch; in Run() local 34 stopwatch.Start(); in Run() 36 stopwatch.Stop(); in Run()
|
D | tracked_objects.h | 495 const TaskStopwatch& stopwatch); 506 const TaskStopwatch& stopwatch); 511 const TaskStopwatch& stopwatch); 588 const TaskStopwatch& stopwatch);
|
/external/libmojo/mojo/edk/system/ |
D | waiter_unittest.cc | 61 test::Stopwatch stopwatch; in Run() local 66 stopwatch.Start(); in Run() 68 elapsed = stopwatch.Elapsed(); in Run() 209 test::Stopwatch stopwatch; in TEST() local 216 stopwatch.Start(); in TEST() 218 elapsed = stopwatch.Elapsed(); in TEST() 223 stopwatch.Start(); in TEST() 226 elapsed = stopwatch.Elapsed(); in TEST() 232 stopwatch.Start(); in TEST() 235 elapsed = stopwatch.Elapsed(); in TEST()
|
/external/caliper/caliper/src/main/java/com/google/caliper/worker/ |
D | MacrobenchmarkWorker.java | 42 private final Stopwatch stopwatch; field in MacrobenchmarkWorker 50 this.stopwatch = Stopwatch.createUnstarted(ticker); in MacrobenchmarkWorker() 68 stopwatch.start(); in measure() 70 long nanos = stopwatch.stop().elapsed(NANOSECONDS); in measure() 71 stopwatch.reset(); in measure()
|
/external/caliper/caliper/src/main/java/com/google/caliper/runner/ |
D | ConsoleOutput.java | 58 private final Stopwatch stopwatch; field in ConsoleOutput 61 ConsoleOutput(@Stdout PrintWriter stdout, int numberOfTrials, Stopwatch stopwatch) { in ConsoleOutput() argument 64 this.stopwatch = stopwatch; in ConsoleOutput() 145 stdout.format("Execution complete: %s.%n", stopwatch.stop()); in close()
|
D | ExperimentingCaliperRun.java | 152 Stopwatch stopwatch = Stopwatch.createStarted(); in run() local 157 ConsoleOutput output = new ConsoleOutput(stdout, totalTrials, stopwatch); in run()
|
/external/libchrome/base/threading/ |
D | worker_pool_posix.cc | 91 tracked_objects::TaskStopwatch stopwatch; in ThreadMain() local 92 stopwatch.Start(); in ThreadMain() 94 stopwatch.Stop(); in ThreadMain() 97 pending_task.birth_tally, pending_task.time_posted, stopwatch); in ThreadMain()
|
D | sequenced_worker_pool.cc | 833 tracked_objects::TaskStopwatch stopwatch; in ThreadLoop() local 834 stopwatch.Start(); in ThreadLoop() 836 stopwatch.Stop(); in ThreadLoop() 839 task, stopwatch); in ThreadLoop()
|
/external/guava/guava-tests/benchmark/com/google/common/base/ |
D | StopwatchBenchmark.java | 32 @Benchmark long stopwatch(int reps) { in stopwatch() method in StopwatchBenchmark
|
/external/antlr/antlr-3.4/runtime/JavaScript/third/ |
D | antcontrib.properties | 21 stopwatch=net.sf.antcontrib.perf.StopWatchTask key
|
/external/ltp/testcases/open_posix_testsuite/functional/timers/ |
D | plan.txt | 17 relative timer, no repeat think: stopwatch 19 relative timer, repeats think: repeating stopwatch
|
/external/guava/guava/src/com/google/common/cache/ |
D | LocalCache.java | 3471 final Stopwatch stopwatch = Stopwatch.createUnstarted(); field in LocalCache.LoadingValueReference 3523 stopwatch.start(); in loadFuture() 3552 return stopwatch.elapsed(NANOSECONDS); in elapsedNanos() 4020 Stopwatch stopwatch = Stopwatch.createStarted(); 4042 globalStatsCounter.recordLoadException(stopwatch.elapsed(NANOSECONDS)); 4047 globalStatsCounter.recordLoadException(stopwatch.elapsed(NANOSECONDS)); 4051 stopwatch.stop(); 4066 globalStatsCounter.recordLoadException(stopwatch.elapsed(NANOSECONDS)); 4071 globalStatsCounter.recordLoadSuccess(stopwatch.elapsed(NANOSECONDS));
|
/external/blktrace/doc/ |
D | blktrace.tex | 395 -w \emph{seconds} & --stopwatch=\emph{seconds} & Sets run time to the number of seconds specified … 504 -w \emph{span} & --stopwatch=\emph{span} & Display traces for the \emph{span} specified -- w…
|
/external/jline/src/src/test/resources/jline/example/ |
D | english.gz |
|