Package org.slf4j.profiler
Interface TimeInstrument
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.- Author:
- Ceki Gülcü
- 
Method SummaryModifier and TypeMethodDescriptionlongTime elapsed between start and stop, in nanoseconds.getName()All time instruments are named entities.org.slf4j.profiler.TimeInstrumentStatusvoidlog()If the time instrument has an associated logger, then log information about this time instrument.voidprint()Print information about this time instrument on the console.voidStart this time instrument.stop()Stop this time instrument.
- 
Method Details- 
getName
- 
getStatusorg.slf4j.profiler.TimeInstrumentStatus getStatus()
- 
start
- 
stop
- 
elapsedTimelong elapsedTime()Time elapsed between start and stop, in nanoseconds.- Returns:
- time elapsed in nanoseconds
 
- 
printvoid print()Print information about this time instrument on the console.
- 
log
 
-