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

1 2 3 4

  /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 assertFalse(stopwatch.isRunning());
42 assertEquals(0, stopwatch.elapsedTime(NANOSECONDS));
46 assertSame(stopwatch, stopwatch.start());
47 assertTrue(stopwatch.isRunning());
51 stopwatch.start()
    [all...]
  /frameworks/native/libs/utils/
StopWatch.cpp 17 #define LOG_TAG "StopWatch"
29 #include <utils/StopWatch.h>
36 StopWatch::StopWatch(const char *name, int clock, uint32_t flags)
42 StopWatch::~StopWatch()
46 ALOGD("StopWatch %s (us): %" PRId64 " ", mName, ns2us(elapsed));
54 const char* StopWatch::name() const
59 nsecs_t StopWatch::lap()
73 nsecs_t StopWatch::elapsedTime() cons
    [all...]
  /external/guava/guava/src/com/google/common/base/
Stopwatch.java 42 * returned by {@code nanoTime} at a different time. {@code Stopwatch} is a
49 * Stopwatch stopwatch = new Stopwatch().{@link #start start}();
51 * stopwatch.{@link #stop stop}(); // optional
53 * long millis = stopwatch.{@link #elapsedMillis elapsedMillis}();
55 * log.info("that took: " + stopwatch); // formatted string like "12.3 ms"
58 * <p>Stopwatch methods are not idempotent; it is an error to start or stop a
59 * stopwatch that is already in the desired state.
62 * #Stopwatch(Ticker) alternate constructor} to supply a fake or mock ticker
    [all...]
  /external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/
Stopwatch.java 41 * returned by {@code nanoTime} at a different time. {@code Stopwatch} is a
48 * Stopwatch stopwatch = new Stopwatch().{@link #start start}();
50 * stopwatch.{@link #stop stop}(); // optional
52 * long millis = stopwatch.{@link #elapsedMillis elapsedMillis}();
54 * log.info("that took: " + stopwatch); // formatted string like "12.3 ms"
57 * <p>Stopwatch methods are not idempotent; it is an error to start or stop a
58 * stopwatch that is already in the desired state.
61 * #Stopwatch(Ticker) alternate constructor} to supply a fake or mock ticker
    [all...]
  /packages/apps/Email/src/com/android/email/
StopWatch.java 28 * StopWatch s = StopWatch.start();
37 public class StopWatch {
42 private StopWatch(String name) {
46 Log.w(Logging.LOG_TAG, "StopWatch(" + mName + ") start");
49 public static StopWatch start(String name) {
50 return new StopWatch(name);
56 Log.w(Logging.LOG_TAG, "StopWatch(" + mName + ") split(" + label + ") " + elapse);
63 Log.w(Logging.LOG_TAG, "StopWatch(" + mName + ") stop: "
  /frameworks/native/opengl/tests/gralloc/
gralloc.cpp 18 #define LOG_TAG "StopWatch"
22 #include <utils/StopWatch.h>
65 StopWatch watch("memset");
71 StopWatch watch("memcpy baseline");
77 StopWatch watch("memcpy from gralloc");
83 StopWatch watch("memcpy into gralloc");
90 StopWatch watch("lamecpy baseline");
96 StopWatch watch("lamecpy from gralloc");
102 StopWatch watch("lamecpy into gralloc");
  /frameworks/native/libs/utils/tests/
Looper_test.cpp 7 #include <utils/StopWatch.h>
14 // # of milliseconds to fudge stopwatch measurements
116 StopWatch stopWatch("pollOnce");
118 int32_t elapsedMillis = ns2ms(stopWatch.elapsedTime());
129 StopWatch stopWatch("pollOnce");
131 int32_t elapsedMillis = ns2ms(stopWatch.elapsedTime());
143 StopWatch stopWatch("pollOnce")
    [all...]
  /external/chromium/chrome/common/extensions/docs/examples/extensions/benchmark/
manifest.json 8 "default_icon": "stopwatch.jpg"
  /system/extras/tests/sdcard/
testcase.h 34 #include "stopwatch.h"
99 void setDump() { StopWatch::setPrintRawMode(true); }
101 StopWatch *testTimer() { return mTestTimer; }
102 StopWatch *openTimer() { return mOpenTimer; }
103 StopWatch *readTimer() { return mReadTimer; }
104 StopWatch *writeTimer() { return mWriteTimer; }
105 StopWatch *syncTimer() { return mSyncTimer; }
106 StopWatch *truncateTimer() { return mTruncateTimer; }
107 StopWatch *traverseTimer() { return mTraverseTimer; }
158 StopWatch *mTestTimer; // Used to time the test overall
    [all...]
stopwatch.cpp 33 #include "stopwatch.h"
54 StopWatch::StopWatch(const char *name, size_t capacity)
67 StopWatch::~StopWatch()
78 void StopWatch::start()
92 void StopWatch::stop()
100 void StopWatch::setPrintRawMode(bool raw)
106 void StopWatch::sprint(char **str, size_t *size)
121 SNPRINTF_OR_RETURN(*str, *size, "# StopWatch %s total/cumulative duration %f Samples: %d\n"
    [all...]
stopwatch.h 38 // StopWatch class to collect execution statistics.
45 // If StopWatch::setPrintRawMode(true) has been called, the raw
62 // StopWatch watch("my name", 20);
75 class StopWatch {
91 StopWatch(const char *name, size_t capacity = kUseDefaultCapacity);
92 ~StopWatch();
94 // A StopWatch instance measures time intervals. Use setDataSize
testcase.cpp 153 mTestTimer = new StopWatch(total_time, 1);
156 mOpenTimer = new StopWatch("open", iter() * kReadWriteFactor);
158 mReadTimer = new StopWatch("read", iter() * dataSize() / chunkSize() * kReadWriteFactor);
161 mWriteTimer = new StopWatch("write", iter() * dataSize() / chunkSize());
164 mSyncTimer = new StopWatch("sync", iter());
166 mTruncateTimer = new StopWatch("truncate", iter());
168 mTraverseTimer = new StopWatch("traversal", iter());
Android.mk 26 stopwatch.cpp \
  /frameworks/base/media/mca/filterfw/java/android/filterfw/core/
StopWatchMap.java 26 class StopWatch {
36 public StopWatch(String name) {
46 "Calling start with StopWatch already running");
54 "Calling stop with StopWatch already stopped");
74 private HashMap<String, StopWatch> mStopWatches = null;
77 mStopWatches = new HashMap<String, StopWatch>();
85 mStopWatches.put(stopWatchName, new StopWatch(stopWatchName));
  /packages/apps/ContactsCommon/src/com/android/contacts/common/util/
StopWatch.java 26 * A {@link StopWatch} records start, laps and stop, and print them to logcat.
28 public class StopWatch {
35 private StopWatch(String label) {
43 public static StopWatch start(String label) {
44 return new StopWatch(label);
89 public static StopWatch getNullStopWatch() {
93 private static class NullStopWatch extends StopWatch {
  /frameworks/native/include/utils/
StopWatch.h 29 class StopWatch
32 StopWatch( const char *name,
35 ~StopWatch();
  /packages/apps/Dialer/src/com/android/dialer/dialpad/
SmartDialLoaderTask.java 28 import com.android.contacts.common.util.StopWatch;
102 final StopWatch stopWatch = DEBUG ? StopWatch.start("Start Match") : null;
105 stopWatch.lap("Find matches");
110 stopWatch.lap("Sort");
138 stopWatch.stopAndLog(LOG_TAG + " Match Complete", 0);
  /development/tools/idegen/src/
Stopwatch.java 20 class Stopwatch {
Configuration.java 62 Stopwatch stopwatch = new Stopwatch(); local
66 stopwatch.reset("Read excludes");
74 stopwatch.reset("Traversed tree");
  /external/chromium/chrome/common/extensions/docs/examples/extensions/
benchmark.zip 
  /dalvik/vm/test/
TestIndirectRefTable.cpp 29 class Stopwatch {
31 Stopwatch() {
356 Stopwatch stopwatch; local
364 stopwatch.reset();
374 kTableMax, kLoops, stopwatch.elapsedSeconds() * 1000 / kLoops);
376 stopwatch.reset();
386 kTableMax, kLoops, stopwatch.elapsedSeconds() * 1000 / kLoops);
391 stopwatch.reset();
398 kTableMax, kLoops, stopwatch.elapsedSeconds() * 1000 / kLoops)
    [all...]
  /external/webkit/Source/JavaScriptCore/
jsc.cpp 116 class StopWatch {
127 void StopWatch::start()
132 void StopWatch::stop()
137 long StopWatch::getElapsedMS()
217 StopWatch stopWatch;
218 stopWatch.start();
220 stopWatch.stop();
222 return JSValue::encode(jsNumber(stopWatch.getElapsedMS()));
248 StopWatch stopWatch
    [all...]
  /packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
Stopwatches.java 17 package com.android.deskclock.stopwatch;
84 * Sets the string of the time running on the stopwatch up to hundred of a second accuracy
85 * @param time - in hundreds of a second since the stopwatch started
122 * Sets the string of the time running on the stopwatch up to hundred of a second accuracy
123 * @param time - in hundreds of a second since the stopwatch started
  /packages/apps/DeskClock/src/com/android/deskclock/
AlarmInitReceiver.java 52 // Clear stopwatch and timers data
55 Log.v("AlarmInitReceiver - Reset timers and clear stopwatch data");
  /sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/wizards/templates/
TemplateHandlerTest.java 55 import com.google.common.base.Stopwatch;
158 Stopwatch stopwatch = new Stopwatch(); local
159 stopwatch.start();
161 stopwatch.stop();
163 + stopwatch.toString());
270 Stopwatch stopwatch = new Stopwatch(); local
281 Stopwatch stopwatch = new Stopwatch(); local
    [all...]

Completed in 821 milliseconds

1 2 3 4