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