public class RuntimeMeasurement extends Object
Runtime measurements.
All times are in nanoseconds since some fixed but arbitrary time (perhaps in the future, so values may be negative).
System.nanoTime()| Constructor and Description | 
|---|
| RuntimeMeasurement() | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getClassName()Gets the class name. | 
| String | getMethodName()Gets the method name. | 
| long | getTimeStarted()Gets the start time. | 
| long | getTimeStopped()Gets the stop time. | 
| void | setClassName(String className)Sets the class name. | 
| void | setMethodName(String methodName)Sets the method name. | 
| void | setTimeStarted(long timeStarted)Sets the start time. | 
| void | setTimeStopped(long timeStopped)Sets the stop time. | 
| String | toString() | 
public void setClassName(String className)
className - the name of the class that is measuredpublic String getClassName()
public void setMethodName(String methodName)
methodName - the name of the method that is measuredpublic String getMethodName()
public void setTimeStarted(long timeStarted)
timeStarted - the start time in nanosecondsSystem.nanoTime()public long getTimeStarted()
System.nanoTime()public void setTimeStopped(long timeStopped)
timeStopped - the stop time in nanosecondsSystem.nanoTime()public long getTimeStopped()
System.nanoTime()Copyright © 2013–2023 The Apache Software Foundation. All rights reserved.