Package com.google.inject.internal.util
Class Stopwatch
java.lang.Object
com.google.inject.internal.util.Stopwatch
Enables simple performance monitoring.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
reset()
Resets and returns elapsed time in milliseconds.void
resetAndLog
(String label) Resets and logs elapsed time in milliseconds.
-
Field Details
-
logger
-
start
private long start
-
-
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.
-