Constructor and Description |
---|
SimpleTimer(java.lang.String name,
MetricStore metricStore) |
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
Timer.stop() method get called |
void |
stop()
Stop the timer
|
public SimpleTimer(java.lang.String name, MetricStore metricStore)
public java.lang.String name()
Timer
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
public void stop()
Timer
Stop the timer
public long ns()
Timer
Returns nanoseconds the time has elapsed since time being created till Timer.stop()
method get called
Copyright © 2014–2017 ActFramework. All rights reserved.