Catalano.Core
Class Stopwatch
- java.lang.Object
-
- Catalano.Core.Stopwatch
-
public class Stopwatch extends java.lang.ObjectProvides a set of methods and properties that you can use to accurately measure elapsed time.
-
-
Constructor Summary
Constructors Constructor and Description Stopwatch()Initializes a new instance of the Stopwatch class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.LongElapsedMilliseconds()Gets the total elapsed time measured by the current instance, in milliseconds.booleanisRunning()Gets a value indicating whether the timer is running.voidReset()Stops time interval measurement and resets the elapsed time to zero.voidRestart()Stops time interval measurement, resets the elapsed time to zero, and starts meansuring elapsed time.voidStart()Start meansuring elapsed time for an interval.voidStop()Stops measuring elapsed time for an inverval.
-
-
-
Method Detail
-
Start
public void Start()
Start meansuring elapsed time for an interval.
-
Stop
public void Stop()
Stops measuring elapsed time for an inverval.
-
Reset
public void Reset()
Stops time interval measurement and resets the elapsed time to zero.
-
Restart
public void Restart()
Stops time interval measurement, resets the elapsed time to zero, and starts meansuring elapsed time.
-
ElapsedMilliseconds
public java.lang.Long ElapsedMilliseconds()
Gets the total elapsed time measured by the current instance, in milliseconds.- Returns:
- Milliseconds.
-
isRunning
public boolean isRunning()
Gets a value indicating whether the timer is running.- Returns:
- Status.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG