Class Stopwatch
java.lang.Object
com.inductiveautomation.ignition.common.util.Stopwatch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongelapsed()Returns the amount of time since the last call to start() (or this Stopwatch's creation) in milliseconds.longReturns the amount of time since the last call to start() (or this Stopwatch's creation) in the units specified.voidstart()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.
-