Java com.google.common.base Stopwatch fields, constructors, methods, implement or subclass

Example usage for Java com.google.common.base Stopwatch fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.common.base Stopwatch.

The text is from its open source code.

Field

booleanisRunning

Constructor

Method

StopwatchcreateStarted()
Creates (and starts) a new stopwatch using System#nanoTime as its time source.
StopwatchcreateStarted(Ticker ticker)
Creates (and starts) a new stopwatch, using the specified time source.
StopwatchcreateUnstarted()
Creates (but does not start) a new stopwatch using System#nanoTime as its time source.
StopwatchcreateUnstarted(Ticker ticker)
Creates (but does not start) a new stopwatch, using the specified time source.
longelapsed(TimeUnit desiredUnit)
Returns the current elapsed time shown on this stopwatch, expressed in the desired time unit, with any fraction rounded down.
Stopwatchreset()
Sets the elapsed time for this stopwatch to zero, and places it in a stopped state.
Stopwatchstart()
Starts the stopwatch.
Stopwatchstop()
Stops the stopwatch.
StringtoString()
Returns a string representation of the current elapsed time.