Home
last modified time | relevance | path

Searched refs:Stopwatch (Results 1 – 25 of 80) sorted by relevance

1234

/external/guava/android/guava/src/com/google/common/base/
DStopwatch.java90 public final class Stopwatch { class
101 public static Stopwatch createUnstarted() { in createUnstarted()
102 return new Stopwatch(); in createUnstarted()
110 public static Stopwatch createUnstarted(Ticker ticker) { in createUnstarted()
111 return new Stopwatch(ticker); in createUnstarted()
119 public static Stopwatch createStarted() { in createStarted()
120 return new Stopwatch().start(); in createStarted()
128 public static Stopwatch createStarted(Ticker ticker) { in createStarted()
129 return new Stopwatch(ticker).start(); in createStarted()
132 Stopwatch() { in Stopwatch() method in Stopwatch
[all …]
/external/guava/guava/src/com/google/common/base/
DStopwatch.java92 public final class Stopwatch { class
103 public static Stopwatch createUnstarted() { in createUnstarted()
104 return new Stopwatch(); in createUnstarted()
112 public static Stopwatch createUnstarted(Ticker ticker) { in createUnstarted()
113 return new Stopwatch(ticker); in createUnstarted()
121 public static Stopwatch createStarted() { in createStarted()
122 return new Stopwatch().start(); in createStarted()
130 public static Stopwatch createStarted(Ticker ticker) { in createStarted()
131 return new Stopwatch(ticker).start(); in createStarted()
134 Stopwatch() { in Stopwatch() method in Stopwatch
[all …]
/external/junit/src/main/java/org/junit/rules/
DStopwatch.java79 public class Stopwatch implements TestRule { class
84 public Stopwatch() { in Stopwatch() method in Stopwatch
88 Stopwatch(Clock clock) { in Stopwatch() method in Stopwatch
154 Stopwatch.this.starting(); in starting()
158 Stopwatch.this.finished(getNanos(), description); in finished()
162 Stopwatch.this.stopping(); in succeeded()
163 Stopwatch.this.succeeded(getNanos(), description); in succeeded()
167 Stopwatch.this.stopping(); in failed()
168 Stopwatch.this.failed(getNanos(), e, description); in failed()
172 Stopwatch.this.stopping(); in skipped()
[all …]
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DSimpleTimeLimiterTest.java22 import com.google.common.base.Stopwatch;
98 Stopwatch stopwatch = Stopwatch.createStarted(); in testNewProxy_goodMethodWithEnoughTime()
110 Stopwatch stopwatch = Stopwatch.createStarted(); in testNewProxy_goodMethodWithNotEnoughTime()
128 Stopwatch stopwatch = Stopwatch.createStarted(); in testNewProxy_badMethodWithEnoughTime()
142 Stopwatch stopwatch = Stopwatch.createStarted(); in testNewProxy_badMethodWithNotEnoughTime()
154 Stopwatch stopwatch = Stopwatch.createStarted(); in testCallWithTimeout_goodCallableWithEnoughTime()
180 Stopwatch stopwatch = Stopwatch.createStarted(); in testCallUninterruptiblyWithTimeout_goodCallableWithEnoughTime()
206 Stopwatch stopwatch = Stopwatch.createStarted(); in testRunWithTimeout_goodRunnableWithEnoughTime()
231 Stopwatch stopwatch = Stopwatch.createStarted(); in testRunUninterruptiblyWithTimeout_goodRunnableWithEnoughTime()
DUninterruptiblesTest.java32 import com.google.common.base.Stopwatch;
106 Stopwatch stopwatch = Stopwatch.createStarted(); in testConditionAwaitTimeoutExceeded()
117 Stopwatch stopwatch = Stopwatch.createStarted(); in testConditionAwaitTimeoutNotExceeded()
128 Stopwatch stopwatch = Stopwatch.createStarted(); in testConditionAwaitInterruptedTimeoutExceeded()
140 Stopwatch stopwatch = Stopwatch.createStarted(); in testConditionAwaitInterruptedTimeoutNotExceeded()
153 Stopwatch stopwatch = Stopwatch.createStarted(); in testTryLockTimeoutExceeded()
168 Stopwatch stopwatch = Stopwatch.createStarted(); in testTryLockTimeoutNotExceeded()
180 Stopwatch stopwatch = Stopwatch.createStarted(); in testTryLockInterruptedTimeoutExceeded()
196 Stopwatch stopwatch = Stopwatch.createStarted(); in testTryLockInterruptedTimeoutNotExceeded()
210 Stopwatch stopwatch = Stopwatch.createStarted(); in testPutWithNoWait()
[all …]
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DSimpleTimeLimiterTest.java22 import com.google.common.base.Stopwatch;
98 Stopwatch stopwatch = Stopwatch.createStarted(); in testNewProxy_goodMethodWithEnoughTime()
110 Stopwatch stopwatch = Stopwatch.createStarted(); in testNewProxy_goodMethodWithNotEnoughTime()
128 Stopwatch stopwatch = Stopwatch.createStarted(); in testNewProxy_badMethodWithEnoughTime()
142 Stopwatch stopwatch = Stopwatch.createStarted(); in testNewProxy_badMethodWithNotEnoughTime()
154 Stopwatch stopwatch = Stopwatch.createStarted(); in testCallWithTimeout_goodCallableWithEnoughTime()
180 Stopwatch stopwatch = Stopwatch.createStarted(); in testCallUninterruptiblyWithTimeout_goodCallableWithEnoughTime()
206 Stopwatch stopwatch = Stopwatch.createStarted(); in testRunWithTimeout_goodRunnableWithEnoughTime()
231 Stopwatch stopwatch = Stopwatch.createStarted(); in testRunUninterruptiblyWithTimeout_goodRunnableWithEnoughTime()
DUninterruptiblesTest.java32 import com.google.common.base.Stopwatch;
105 Stopwatch stopwatch = Stopwatch.createStarted(); in testConditionAwaitTimeoutExceeded()
116 Stopwatch stopwatch = Stopwatch.createStarted(); in testConditionAwaitTimeoutNotExceeded()
127 Stopwatch stopwatch = Stopwatch.createStarted(); in testConditionAwaitInterruptedTimeoutExceeded()
139 Stopwatch stopwatch = Stopwatch.createStarted(); in testConditionAwaitInterruptedTimeoutNotExceeded()
152 Stopwatch stopwatch = Stopwatch.createStarted(); in testTryLockTimeoutExceeded()
167 Stopwatch stopwatch = Stopwatch.createStarted(); in testTryLockTimeoutNotExceeded()
179 Stopwatch stopwatch = Stopwatch.createStarted(); in testTryLockInterruptedTimeoutExceeded()
195 Stopwatch stopwatch = Stopwatch.createStarted(); in testTryLockInterruptedTimeoutNotExceeded()
209 Stopwatch stopwatch = Stopwatch.createStarted(); in testPutWithNoWait()
[all …]
/external/libchrome/mojo/core/
Dtest_utils.cc57 Stopwatch::Stopwatch() {} in Stopwatch() function in mojo::core::test::Stopwatch
59 Stopwatch::~Stopwatch() {} in ~Stopwatch()
61 void Stopwatch::Start() { in Start()
65 MojoDeadline Stopwatch::Elapsed() { in Elapsed()
Dtest_utils.h39 class Stopwatch {
41 Stopwatch();
42 ~Stopwatch();
52 DISALLOW_COPY_AND_ASSIGN(Stopwatch);
/external/webrtc/api/neteq/
Dtick_timer.h34 class Stopwatch {
36 explicit Stopwatch(const TickTimer& ticktimer);
71 const std::unique_ptr<Stopwatch> stopwatch_;
95 std::unique_ptr<Stopwatch> GetNewStopwatch() const { in GetNewStopwatch()
96 return std::unique_ptr<Stopwatch>(new Stopwatch(*this)); in GetNewStopwatch()
Dtick_timer_unittest.cc54 TEST(TickTimer, Stopwatch) { in TEST() argument
59 std::unique_ptr<TickTimer::Stopwatch> sw = tt.GetNewStopwatch(); in TEST()
73 std::unique_ptr<TickTimer::Stopwatch> sw = tt.GetNewStopwatch(); in TEST()
89 std::unique_ptr<TickTimer::Stopwatch> sw = tt.GetNewStopwatch(); in TEST()
106 std::unique_ptr<TickTimer::Stopwatch> sw = tt.GetNewStopwatch(); in TEST()
Dtick_timer.cc15 TickTimer::Stopwatch::Stopwatch(const TickTimer& ticktimer) in Stopwatch() function in webrtc::TickTimer::Stopwatch
/external/dagger2/java/dagger/producers/monitoring/
DTimingProducerMonitor.java21 import com.google.common.base.Stopwatch;
31 private final Stopwatch stopwatch;
32 private final Stopwatch componentStopwatch;
36 ProducerTimingRecorder recorder, Ticker ticker, Stopwatch componentStopwatch) { in TimingProducerMonitor()
38 this.stopwatch = Stopwatch.createUnstarted(ticker); in TimingProducerMonitor()
DTimingProductionComponentMonitor.java19 import com.google.common.base.Stopwatch;
35 private final Stopwatch stopwatch;
40 this.stopwatch = Stopwatch.createStarted(ticker); in TimingProductionComponentMonitor()
/external/mockito/src/test/java/org/mockitoutil/
DStopwatch.java18 public class Stopwatch { class
28 private Stopwatch() { in Stopwatch() method in Stopwatch
34 public static Stopwatch createNotStarted() { in createNotStarted()
35 return new Stopwatch(); in createNotStarted()
/external/guava/android/guava-tests/test/com/google/common/base/
DStopwatchTest.java36 private final Stopwatch stopwatch = new Stopwatch(ticker);
39 Stopwatch startedStopwatch = Stopwatch.createStarted(); in testCreateStarted()
44 Stopwatch unstartedStopwatch = Stopwatch.createUnstarted(); in testCreateUnstarted()
/external/guava/guava-tests/test/com/google/common/base/
DStopwatchTest.java38 private final Stopwatch stopwatch = new Stopwatch(ticker);
41 Stopwatch startedStopwatch = Stopwatch.createStarted(); in testCreateStarted()
46 Stopwatch unstartedStopwatch = Stopwatch.createUnstarted(); in testCreateUnstarted()
/external/mockito/src/test/java/org/mockitoutil/async/
DAsyncTestingTest.java9 import org.mockitoutil.Stopwatch;
15 import static org.mockitoutil.Stopwatch.createNotStarted;
20 private Stopwatch watch = createNotStarted();
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DFakeClock.java19 import com.google.common.base.Stopwatch;
63 private final Supplier<Stopwatch> stopwatchSupplier =
64 new Supplier<Stopwatch>() {
65 @Override public Stopwatch get() {
66 return Stopwatch.createUnstarted(ticker);
200 public Supplier<Stopwatch> getStopwatchSupplier() { in getStopwatchSupplier()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DRescheduler.java20 import com.google.common.base.Stopwatch;
37 private final Stopwatch stopwatch;
46 Stopwatch stopwatch) { in Rescheduler()
/external/grpc-grpc-java/testing/src/main/java/io/grpc/testing/
DGrpcCleanupRule.java23 import com.google.common.base.Stopwatch;
52 private Stopwatch stopwatch = Stopwatch.createUnstarted();
80 this.stopwatch = Stopwatch.createUnstarted(ticker); in setTicker()
/external/guice/core/src/com/google/inject/internal/util/
DStopwatch.java26 public final class Stopwatch { class
27 private static final Logger logger = Logger.getLogger(Stopwatch.class.getName());
/external/caliper/caliper/src/main/java/com/google/caliper/worker/
DMacrobenchmarkWorker.java29 import com.google.common.base.Stopwatch;
42 private final Stopwatch stopwatch;
50 this.stopwatch = Stopwatch.createUnstarted(ticker); in MacrobenchmarkWorker()
/external/mockito/src/test/java/org/mockitousage/verification/
DVerificationWithAfterAndCaptorTest.java16 import org.mockitoutil.Stopwatch;
24 import static org.mockitoutil.Stopwatch.createNotStarted;
34 private Stopwatch watch = createNotStarted();
/external/guava/guava-tests/benchmark/com/google/common/base/
DStopwatchBenchmark.java33 Stopwatch s = Stopwatch.createStarted(); in stopwatch()

1234