public interface Timer
A Timer that could be used to measure execution duration of a certain process
Modifier and Type | Method and Description |
---|---|
java.lang.String |
name()
Returns the name of the timer.
|
long |
ns()
Returns nanoseconds the time has elapsed since time being created till
stop() method get called |
void |
stop()
Stop the timer
|
java.lang.String name()
Returns the name of the timer. The string returned should be identical to the string passed in Metric.startTimer(String)
method that returns this timer
void stop()
Stop the timer
long ns()
Returns nanoseconds the time has elapsed since time being created till stop()
method get called
Copyright © 2014–2017 ActFramework. All rights reserved.