Class Stopwatch
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.util.Stopwatch
 
- 
 public class Stopwatch extends java.lang.Object
- 
- 
Constructor SummaryConstructors Constructor Description Stopwatch()Creates a new Stopwatch, calls start() automatically.
 - 
Method SummaryAll 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- 
startpublic void start() Starts the stopwatch. Subsequent calls to elapsed() will return the time since this call.
 - 
elapsedpublic long elapsed() Returns the amount of time since the last call to start() (or this Stopwatch's creation) in milliseconds.
 - 
elapsedpublic 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.
 
- 
 
-