|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TimeInstrument
This interface sets the methods that must be implemented by
Profiler and StopWatch classes. It settles the
general feel of the profiler package.
| Method Summary | |
|---|---|
long |
elapsedTime()
Time elapsed between start and stop, in nanoseconds. |
String |
getName()
All time instruments are named entities. |
org.slf4j.profiler.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(String name)
Start tis time instrument. |
TimeInstrument |
stop()
Stop this time instrument. |
| Method Detail |
|---|
String getName()
org.slf4j.profiler.TimeInstrumentStatus getStatus()
void start(String name)
name - TimeInstrument stop()
long elapsedTime()
void print()
void log()
StopWatch instances cannot log while Profiler
instances can.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||