-
public class StopwatchUtility class for high precision time keeping.
-
-
Constructor Summary
Constructors Constructor Description Stopwatch()Creates a new stopwatch instance.
-
Method Summary
Modifier and Type Method Description Durationduration()Retrieves the elapsed time since its last start or reset. longnanoseconds()Retrieves the elapsed nanoseconds since its last start or reset. doublemilliseconds()Retrieves the elapsed milliseconds since its last start or reset. voidreset()Resets the stopwatch. -
-
Method Detail
-
nanoseconds
long nanoseconds()
Retrieves the elapsed nanoseconds since its last start or reset.
-
milliseconds
double milliseconds()
Retrieves the elapsed milliseconds since its last start or reset.
-
reset
void reset()
Resets the stopwatch.
-
-
-
-