Class Stopwatch
java.lang.Object
org.elasticsearch.common.inject.internal.Stopwatch
Enables simple performance monitoring.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
reset()
Resets and returns elapsed time in milliseconds.void
resetAndLog
(String label) Resets and logs elapsed time in milliseconds.
-
Constructor Details
-
Stopwatch
public Stopwatch()
-
-
Method Details
-
reset
public long reset()Resets and returns elapsed time in milliseconds. -
resetAndLog
Resets and logs elapsed time in milliseconds.
-