Class Stopwatch
- java.lang.Object
-
- com.inductiveautomation.ignition.common.util.Stopwatch
-
public class Stopwatch extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Stopwatch()Creates a new Stopwatch, calls start() automatically.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longelapsed()Returns the amount of time since the last call to start() (or this Stopwatch's creation) in milliseconds.longelapsed(java.util.concurrent.TimeUnit units)Returns the amount of time since the last call to start() (or this Stopwatch's creation) in the units specified.voidstart()Starts the stopwatch.
-
-
-
Method Detail
-
start
public void start()
Starts the stopwatch. Subsequent calls to elapsed() will return the time since this call.
-
elapsed
public long elapsed()
Returns the amount of time since the last call to start() (or this Stopwatch's creation) in milliseconds.
-
elapsed
public long elapsed(java.util.concurrent.TimeUnit units)
Returns the amount of time since the last call to start() (or this Stopwatch's creation) in the units specified.
-
-