Modifier and Type | Method and Description |
---|---|
long |
elapsedTime()
Time elapsed between start and stop, in nanoseconds.
|
java.lang.String |
getName()
All time instruments are named entities.
|
TimeInstrumentStatus |
getStatus() |
void |
log()
If the time instrument has an associated logger, then log information about
this time instrument.
|
void |
print()
Print information about this time instrument on the console.
|
void |
start(java.lang.String name)
Start this time instrument.
|
TimeInstrument |
stop()
Stop this time instrument.
|
java.lang.String getName()
TimeInstrumentStatus getStatus()
void start(java.lang.String name)
name
- TimeInstrument stop()
long elapsedTime()
void print()
void log()