/external/guava/guava/src/com/google/common/base/ |
Ticker.java | 36 public abstract class Ticker { 40 protected Ticker() {} 43 * Returns the number of nanoseconds elapsed since this ticker's fixed 49 * A ticker that reads the current time using {@link System#nanoTime}. 53 public static Ticker systemTicker() { 57 private static final Ticker SYSTEM_TICKER = new Ticker() {
|
Stopwatch.java | 64 * {@link #createUnstarted(Ticker)} or {@link #createStarted(Ticker)} to 65 * supply a fake or mock ticker. 77 private final Ticker ticker; field in class:Stopwatch 98 public static Stopwatch createUnstarted(Ticker ticker) { 99 return new Stopwatch(ticker); 118 public static Stopwatch createStarted(Ticker ticker) { [all...] |
/prebuilts/go/darwin-x86/src/time/ |
tick.go | 9 // A Ticker holds a channel that delivers `ticks' of a clock 11 type Ticker struct { 16 // NewTicker returns a new Ticker containing a channel that will send the 20 // Stop the ticker to release associated resources. 21 func NewTicker(d Duration) *Ticker { 29 t := &Ticker{ 42 // Stop turns off a ticker. After Stop, no more ticks will be sent. 45 func (t *Ticker) Stop() { 51 // the Ticker, be aware that without a way to shut it down the underlying 52 // Ticker cannot be recovered by the garbage collector; it "leaks" [all...] |
tick_test.go | 15 ticker := NewTicker(Delta) 18 <-ticker.C 20 ticker.Stop() 28 // Now test that the ticker stopped 31 case <-ticker.C: 32 t.Fatal("Ticker did not shut down") 38 // Test that a bug tearing down a ticker has been fixed. This routine should not deadlock. 45 ticker := NewTicker(Delta) 46 <-ticker.C 47 ticker.Stop( [all...] |
/prebuilts/go/linux-x86/src/time/ |
tick.go | 9 // A Ticker holds a channel that delivers `ticks' of a clock 11 type Ticker struct { 16 // NewTicker returns a new Ticker containing a channel that will send the 20 // Stop the ticker to release associated resources. 21 func NewTicker(d Duration) *Ticker { 29 t := &Ticker{ 42 // Stop turns off a ticker. After Stop, no more ticks will be sent. 45 func (t *Ticker) Stop() { 51 // the Ticker, be aware that without a way to shut it down the underlying 52 // Ticker cannot be recovered by the garbage collector; it "leaks" [all...] |
tick_test.go | 15 ticker := NewTicker(Delta) 18 <-ticker.C 20 ticker.Stop() 28 // Now test that the ticker stopped 31 case <-ticker.C: 32 t.Fatal("Ticker did not shut down") 38 // Test that a bug tearing down a ticker has been fixed. This routine should not deadlock. 45 ticker := NewTicker(Delta) 46 <-ticker.C 47 ticker.Stop( [all...] |
/external/guava/guava-testlib/src/com/google/common/testing/ |
FakeTicker.java | 23 import com.google.common.base.Ticker; 29 * A Ticker whose value can be advanced programmatically in test. 31 * The ticker can be configured so that the time is incremented whenever {@link #read} is called: 41 public class FakeTicker extends Ticker { 46 /** Advances the ticker value by {@code time} in {@code timeUnit}. */ 51 /** Advances the ticker value by {@code nanoseconds}. */ 58 * Sets the increment applied to the ticker whenever it is queried. 60 * <p>The default behavior is to auto increment by zero. i.e: The ticker is left unchanged when
|
ArbitraryInstances.java | 32 import com.google.common.base.Ticker; 215 .put(Ticker.class, Ticker.systemTicker())
|
FreshValueGenerator.java | 28 import com.google.common.base.Ticker; 463 @Generates private Ticker freshTicker() { 464 return new Ticker() { 468 final String string = paramString(Ticker.class, freshInt());
|
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/ |
Stopwatch.java | 63 * {@link #createUnstarted(Ticker)} or {@link #createStarted(Ticker)} to 64 * supply a fake or mock ticker. 76 private final Ticker ticker; field in class:Stopwatch 97 public static Stopwatch createUnstarted(Ticker ticker) { 98 return new Stopwatch(ticker); 117 public static Stopwatch createStarted(Ticker ticker) { [all...] |
/external/caliper/caliper/src/main/java/com/google/caliper/worker/ |
RuntimeWorker.java | 29 import com.google.common.base.Ticker; 45 protected final Ticker ticker; field in class:RuntimeWorker 52 Method method, Random random, Ticker ticker, 57 this.ticker = ticker; 105 @BenchmarkMethod Method method, Random random, Ticker ticker, 107 super(benchmark, method, random, ticker, workerOptions) [all...] |
WorkerModule.java | 24 import com.google.common.base.Ticker; 41 * objects required by different workers. (i.e. don't bind a Ticker if the worker is an allocation 120 static Ticker provideTicker() { 121 return Ticker.systemTicker();
|
MacrobenchmarkWorker.java | 30 import com.google.common.base.Ticker; 48 Ticker ticker, @WorkerOptions Map<String, String> workerOptions) { 50 this.stopwatch = Stopwatch.createUnstarted(ticker);
|
/external/libgdx/extensions/gdx-controllers/gdx-controllers-gwt/src/com/badlogic/gdx/controllers/gwt/support/ |
GamepadSupport.java | 26 private static Ticker ticker = new Ticker(); field in class:GamepadSupport 40 ticker.start(); 44 ticker.stop(); 136 private static class Ticker implements AnimationScheduler.AnimationCallback {
|
/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/ |
CacheBuilder.java | 29 import com.google.common.base.Ticker; 200 static final Ticker NULL_TICKER = new Ticker() { 230 Ticker ticker; field in class:CacheBuilder 453 * @throws IllegalStateException if a ticker was already set 455 public CacheBuilder<K, V> ticker(Ticker ticker) { method in class:CacheBuilder 456 checkState(this.ticker == null) [all...] |
LocalCache.java | 24 import com.google.common.base.Ticker; 60 private final Ticker ticker; field in class:LocalCache 81 this.ticker = firstNonNull(builder.ticker, Ticker.systemTicker()); 119 Timestamped<V> oldValue = cachingHashMap.put(key, new Timestamped<V>(value, ticker)); 235 return ticker.read(); 245 long startTime = ticker.read(); 261 statsCounter.recordLoadException(ticker.read() - startTime) 305 private final Ticker ticker; field in class:LocalCache.Timestamped [all...] |
/external/guava/guava-gwt/test-super/com/google/common/cache/super/com/google/common/cache/ |
CacheBuilderTest.java | 27 import com.google.common.base.Ticker; 169 Ticker testTicker = Ticker.systemTicker(); 171 new CacheBuilder<Object, Object>().ticker(testTicker); 174 builder.ticker(testTicker);
|
/external/caliper/caliper/src/main/java/com/google/caliper/runner/ |
NanoTimeGranularityTester.java | 23 import com.google.common.base.Ticker; 29 * directly rather than using {@link Ticker} because the extra indirection might cause additional
|
/external/guava/guava/src/com/google/common/cache/ |
CacheBuilder.java | 31 import com.google.common.base.Ticker; 206 static final Ticker NULL_TICKER = new Ticker() { 236 Ticker ticker; field in class:CacheBuilder 698 * @throws IllegalStateException if a ticker was already set 700 public CacheBuilder<K, V> ticker(Ticker ticker) { method in class:CacheBuilder 701 checkState(this.ticker == null) [all...] |
/external/guava/guava/src/com/google/common/collect/ |
MapMaker.java | 29 import com.google.common.base.Ticker; 130 Ticker ticker; field in class:MapMaker 446 Ticker getTicker() { 447 return MoreObjects.firstNonNull(ticker, Ticker.systemTicker()); [all...] |
/external/guava/guava-tests/test/com/google/common/cache/ |
CacheBuilderTest.java | 30 import com.google.common.base.Ticker; 345 Ticker testTicker = Ticker.systemTicker(); 347 new CacheBuilder<Object, Object>().ticker(testTicker); 350 builder.ticker(testTicker);
|
/external/v8/src/ |
log.h | 65 class Ticker; 378 Ticker* ticker_;
|
log.cc | 674 // Ticker used to provide ticks to the profiler and the sliding state 677 class Ticker: public Sampler { 679 Ticker(Isolate* isolate, int interval): 683 ~Ticker() { if (IsActive()) Stop(); } [all...] |
/external/guava/guava-testlib/test/com/google/common/testing/ |
ArbitraryInstancesTest.java | 27 import com.google.common.base.Ticker; 229 assertNotNull(ArbitraryInstances.get(Ticker.class));
|
/frameworks/base/core/tests/overlaytests/ |
testrunner.py | 50 class Ticker(threading.Thread): 84 self.ticker = VerbosePrinter.Ticker(self.cond_var, self.text) 85 self.ticker.start() 88 self.ticker.stop() 89 self.ticker.join() 90 self.ticker = None 99 self.ticker = None
|