-
public class Stopwatch
Utility class for high precision time keeping.
-
-
Constructor Summary
Constructors Constructor Description Stopwatch()
Creates a new stopwatch instance.
-
Method Summary
Modifier and Type Method Description Duration
duration()
Retrieves the elapsed time since its last start or reset. long
nanoseconds()
Retrieves the elapsed nanoseconds since its last start or reset. double
milliseconds()
Retrieves the elapsed milliseconds since its last start or reset. void
reset()
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.
-
-
-
-