Package com.plccom.opc.ua.client.utils
Class StopWatch
- java.lang.Object
-
- com.plccom.opc.ua.client.utils.StopWatch
-
public class StopWatch extends Object
PLCcom sdk StopWatch Implementation- Author:
- Indi.An GmbH, www.indi-an.com, support@indi-an.com
-
-
Constructor Summary
Constructors Constructor Description StopWatch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetElapsedMilliseconds()Return the total elapsed MilliSeconds 1 millisecond = 1000000 nanosecondslonggetElapsedTicks()Gets the total elapsed Ticks 1 Tick = 100 nanosecondsvoidreset()End time interval measurement and set the elapsed time to 0voidstart()Begin measuring elapsed timevoidstop()End measuring elapsed time
-
-
-
Method Detail
-
start
public void start()
Begin measuring elapsed time
-
stop
public void stop()
End measuring elapsed time
-
reset
public void reset()
End time interval measurement and set the elapsed time to 0
-
getElapsedTicks
public long getElapsedTicks()
Gets the total elapsed Ticks 1 Tick = 100 nanoseconds- Returns:
- the elapsed ticks
-
getElapsedMilliseconds
public long getElapsedMilliseconds()
Return the total elapsed MilliSeconds 1 millisecond = 1000000 nanoseconds- Returns:
- the elapsed milliseconds
-
-