Class Stopwatch
java.lang.Object
com.inductiveautomation.ignition.common.util.Stopwatch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
elapsed()
Returns the amount of time since the last call to start() (or this Stopwatch's creation) in milliseconds.long
Returns the amount of time since the last call to start() (or this Stopwatch's creation) in the units specified.void
start()
Starts the stopwatch.
-
Constructor Details
-
Stopwatch
public Stopwatch()Creates a new Stopwatch, calls start() automatically.
-
-
Method Details
-
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
Returns the amount of time since the last call to start() (or this Stopwatch's creation) in the units specified.
-