HomeSort by relevance Sort by last modified time
    Searched refs:stopwatch (Results 1 - 25 of 41) sorted by null

1 2

  /external/guava/guava-tests/test/com/google/common/base/
StopwatchTest.java 30 * Unit test for {@link Stopwatch}.
38 private final Stopwatch stopwatch = new Stopwatch(ticker); field in class:StopwatchTest
41 Stopwatch startedStopwatch = Stopwatch.createStarted();
46 Stopwatch unstartedStopwatch = Stopwatch.createUnstarted();
52 assertFalse(stopwatch.isRunning());
53 assertEquals(0, stopwatch.elapsed(NANOSECONDS))
    [all...]
  /external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/
StopwatchTest.java 29 * Unit test for {@link Stopwatch}.
37 private final Stopwatch stopwatch = new Stopwatch(ticker); field in class:StopwatchTest
40 Stopwatch startedStopwatch = Stopwatch.createStarted();
45 Stopwatch unstartedStopwatch = Stopwatch.createUnstarted();
51 assertFalse(stopwatch.isRunning());
52 assertEquals(0, stopwatch.elapsed(NANOSECONDS))
    [all...]
  /external/guava/guava-tests/test/com/google/common/util/concurrent/
RateLimiterTest.java 51 private final FakeStopwatch stopwatch = new FakeStopwatch(); field in class:RateLimiterTest
54 RateLimiter limiter = RateLimiter.create(stopwatch, 5.0);
118 RateLimiter limiter = RateLimiter.create(stopwatch, 5.0);
120 stopwatch.sleepMillis(200); // U0.20, we are ready for the next request...
127 RateLimiter limiter = RateLimiter.create(stopwatch, 5.0);
129 stopwatch.sleepMillis(200); // U0.20, we are ready for the next request...
136 RateLimiter limiter = RateLimiter.create(stopwatch, 5.0);
138 stopwatch.sleepMillis(400);
145 RateLimiter limiter = RateLimiter.create(stopwatch, 5.0);
146 stopwatch.sleepMillis(1000); // max capacity reache
    [all...]
  /external/guava/guava/src/com/google/common/util/concurrent/
RateLimiter.java 27 import com.google.common.base.Stopwatch;
137 static RateLimiter create(SleepingStopwatch stopwatch, double permitsPerSecond) {
138 RateLimiter rateLimiter = new SmoothBursty(stopwatch, 1.0 /* maxBurstSeconds */);
174 SleepingStopwatch stopwatch, double permitsPerSecond, long warmupPeriod, TimeUnit unit) {
175 RateLimiter rateLimiter = new SmoothWarmingUp(stopwatch, warmupPeriod, unit);
184 private final SleepingStopwatch stopwatch; field in class:RateLimiter
202 RateLimiter(SleepingStopwatch stopwatch) {
203 this.stopwatch = checkNotNull(stopwatch);
229 doSetRate(permitsPerSecond, stopwatch.readMicros())
    [all...]
SmoothRateLimiter.java 230 SmoothWarmingUp(SleepingStopwatch stopwatch, long warmupPeriod, TimeUnit timeUnit) {
231 super(stopwatch);
284 SmoothBursty(SleepingStopwatch stopwatch, double maxBurstSeconds) {
285 super(stopwatch);
332 private SmoothRateLimiter(SleepingStopwatch stopwatch) {
333 super(stopwatch);
ServiceManager.java 37 import com.google.common.base.Stopwatch;
416 final Map<Service, Stopwatch> startupTimers = Maps.newIdentityHashMap();
483 Stopwatch stopwatch = startupTimers.get(service); local
484 if (stopwatch == null) {
485 startupTimers.put(service, Stopwatch.createStarted());
595 for (Entry<Service, Stopwatch> entry : startupTimers.entrySet()) {
597 Stopwatch stopWatch = entry.getValue();
598 if (!stopWatch.isRunning() && !(service instanceof NoOpService))
644 Stopwatch stopwatch = startupTimers.get(service); local
    [all...]
  /external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
Rescheduler.java 20 import com.google.common.base.Stopwatch;
37 private final Stopwatch stopwatch; field in class:Rescheduler
46 Stopwatch stopwatch) {
50 this.stopwatch = stopwatch;
51 stopwatch.start();
114 return stopwatch.elapsed(TimeUnit.NANOSECONDS);
Http2Ping.java 19 import com.google.common.base.Stopwatch;
48 private final Stopwatch stopwatch; field in class:Http2Ping
75 * using the given payload. The caller is also responsible for starting the stopwatch when the
79 * @param stopwatch a stopwatch for measuring round-trip time
81 public Http2Ping(long data, Stopwatch stopwatch) {
83 this.stopwatch = stopwatch;
    [all...]
CensusStatsModule.java 24 import com.google.common.base.Stopwatch;
75 private final Supplier<Stopwatch> stopwatchSupplier;
83 CensusStatsModule(Supplier<Stopwatch> stopwatchSupplier, boolean propagateTags) {
98 StatsRecorder statsRecorder, Supplier<Stopwatch> stopwatchSupplier,
313 private final Stopwatch stopwatch; field in class:CensusStatsModule.ClientCallTracer
331 this.stopwatch = module.stopwatchSupplier.get().start();
383 stopwatch.stop();
384 long roundtripNanos = stopwatch.elapsed(TimeUnit.NANOSECONDS);
478 private final Stopwatch stopwatch field in class:CensusStatsModule.ServerTracer
    [all...]
DnsNameResolver.java 23 import com.google.common.base.Stopwatch;
134 private final Stopwatch stopwatch; field in class:DnsNameResolver
147 Stopwatch stopwatch) {
170 this.stopwatch = Preconditions.checkNotNull(stopwatch, "stopwatch");
204 && stopwatch.elapsed(TimeUnit.NANOSECONDS) > networkAddressCacheTtlNanos);
239 stopwatch.reset().start()
    [all...]
  /external/guice/core/src/com/google/inject/internal/
InternalInjectorCreator.java 28 import com.google.inject.internal.util.Stopwatch;
60 private final Stopwatch stopwatch = new Stopwatch(); field in class:InternalInjectorCreator
103 shells = shellBuilder.build(initializer, bindingData, stopwatch, errors);
104 stopwatch.resetAndLog("Injector construction");
123 stopwatch.resetAndLog("Binding initialization");
128 stopwatch.resetAndLog("Binding indexing");
131 stopwatch.resetAndLog("Collecting injection requests");
134 stopwatch.resetAndLog("Binding validation")
    [all...]
InjectorShell.java 33 import com.google.inject.internal.util.Stopwatch;
125 Stopwatch stopwatch,
154 stopwatch.resetAndLog("Module execution");
160 stopwatch.resetAndLog("Interceptors creation");
170 stopwatch.resetAndLog("TypeListeners & ProvisionListener creation");
173 stopwatch.resetAndLog("Scopes creation");
176 stopwatch.resetAndLog("Converters creation");
187 stopwatch.resetAndLog("Binding creation");
190 stopwatch.resetAndLog("Module annotated method scanners creation")
    [all...]
  /external/caliper/caliper/src/main/java/com/google/caliper/worker/
MacrobenchmarkWorker.java 29 import com.google.common.base.Stopwatch;
42 private final Stopwatch stopwatch; field in class:MacrobenchmarkWorker
50 this.stopwatch = Stopwatch.createUnstarted(ticker);
68 stopwatch.start();
70 long nanos = stopwatch.stop().elapsed(NANOSECONDS);
71 stopwatch.reset();
  /external/grpc-grpc/src/csharp/Grpc.Core/Utils/
BenchmarkUtil.cs 46 var stopwatch = new Stopwatch();
47 stopwatch.Start();
52 stopwatch.Stop();
53 logger.Info("Elapsed time: {0}ms", stopwatch.ElapsedMilliseconds);
54 logger.Info("Ops per second: {0}", (int)((double)benchmarkIterations * 1000 / stopwatch.ElapsedMilliseconds));
  /external/guava/guava-tests/benchmark/com/google/common/base/
StopwatchBenchmark.java 20 import com.google.common.base.Stopwatch;
26 * most useful result because it's ambiguous to what extent the stopwatch
32 @Benchmark long stopwatch(int reps) { method in class:StopwatchBenchmark
35 Stopwatch s = Stopwatch.createStarted();
  /external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
FakeClockTest.java 24 import com.google.common.base.Stopwatch;
102 Stopwatch stopwatch = fakeClock.getStopwatchSupplier().get(); local
105 stopwatch.start();
109 assertEquals(expectedElapsedNanos, stopwatch.elapsed(TimeUnit.NANOSECONDS));
113 assertEquals(expectedElapsedNanos, stopwatch.elapsed(TimeUnit.NANOSECONDS));
115 stopwatch.stop();
118 assertEquals(expectedElapsedNanos, stopwatch.elapsed(TimeUnit.NANOSECONDS));
120 stopwatch.reset();
123 assertEquals(expectedElapsedNanos, stopwatch.elapsed(TimeUnit.NANOSECONDS))
    [all...]
  /external/grpc-grpc-java/testing/src/main/java/io/grpc/testing/
GrpcCleanupRule.java 23 import com.google.common.base.Stopwatch;
52 private Stopwatch stopwatch = Stopwatch.createUnstarted(); field in class:GrpcCleanupRule
77 @SuppressWarnings("BetaApi") // Stopwatch.createUnstarted(Ticker ticker) is not Beta. Test only.
80 this.stopwatch = Stopwatch.createUnstarted(ticker);
150 stopwatch.start();
166 timeoutNanos - stopwatch.elapsed(TimeUnit.NANOSECONDS), TimeUnit.NANOSECONDS);
  /external/grpc-grpc/src/csharp/Grpc.IntegrationTesting/
ClientRunners.cs 211 var stopwatch = new Stopwatch();
222 stopwatch.Restart();
224 stopwatch.Stop();
227 threadLocalHistogram.Value.AddObservation(stopwatch.Elapsed.TotalSeconds * SecondsToNanos);
237 var stopwatch = new Stopwatch();
241 stopwatch.Restart();
243 stopwatch.Stop();
246 threadLocalHistogram.Value.AddObservation(stopwatch.Elapsed.TotalSeconds * SecondsToNanos)
    [all...]
StressTestClient.cs 146 var stopwatch = Stopwatch.StartNew();
150 stopwatch.Stop();
151 histogram.AddObservation(stopwatch.Elapsed.TotalSeconds * SecondsToNanos);
  /external/caliper/caliper/src/main/java/com/google/caliper/runner/
ConsoleOutput.java 27 import com.google.common.base.Stopwatch;
58 private final Stopwatch stopwatch; field in class:ConsoleOutput
61 ConsoleOutput(@Stdout PrintWriter stdout, int numberOfTrials, Stopwatch stopwatch) {
64 this.stopwatch = stopwatch;
145 stdout.format("Execution complete: %s.%n", stopwatch.stop());
ExperimentingCaliperRun.java 25 import com.google.common.base.Stopwatch;
152 Stopwatch stopwatch = Stopwatch.createStarted(); local
157 ConsoleOutput output = new ConsoleOutput(stdout, totalTrials, stopwatch);
  /external/grpc-grpc/examples/csharp/RouteGuide/RouteGuideServer/
RouteGuideImpl.cs 73 var stopwatch = new Stopwatch();
74 stopwatch.Start();
91 stopwatch.Stop();
98 ElapsedTime = (int)(stopwatch.ElapsedMilliseconds / 1000)
  /external/libkmsxx/kms++util/inc/kms++util/
kms++util.h 9 #include <kms++util/stopwatch.h>
  /development/tools/idegen/src/
Configuration.java 62 Stopwatch stopwatch = new Stopwatch(); local
66 stopwatch.reset("Read excludes");
74 stopwatch.reset("Traversed tree");
  /device/linaro/bootloader/arm-trusted-firmware/plat/rockchip/rk3399/drivers/m0/
Makefile 33 src/stopwatch.c

Completed in 3537 milliseconds

1 2