Example usage for Java com.google.common.base Stopwatch fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | isRunning |
Stopwatch | createStarted() Creates (and starts) a new stopwatch using System#nanoTime as its time source. |
Stopwatch | createStarted(Ticker ticker) Creates (and starts) a new stopwatch, using the specified time source. |
Stopwatch | createUnstarted() Creates (but does not start) a new stopwatch using System#nanoTime as its time source. |
Stopwatch | createUnstarted(Ticker ticker) Creates (but does not start) a new stopwatch, using the specified time source. |
long | elapsed(TimeUnit desiredUnit) Returns the current elapsed time shown on this stopwatch, expressed in the desired time unit, with any fraction rounded down. |
Stopwatch | reset() Sets the elapsed time for this stopwatch to zero, and places it in a stopped state. |
Stopwatch | start() Starts the stopwatch. |
Stopwatch | stop() Stops the stopwatch. |
String | toString() Returns a string representation of the current elapsed time. |