| The most basic of timing Monitors. It is very close in performance to making straight calls to System.currentTimeMillis().
This class is used primarily for comparison to the best case performance numbers for all of the other Monitors,
however it may also be used to make timing measurements.
BasicTimingMonitors are not thread safe. Monitors returned via MonitorFactory are.
Sample call:
BasicTimingMonitor mon=new BasicTimingMonitor();
mon.start();
...code being monitored...
mon.stop();
|