|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jfw.util.Profiler
public class Profiler
A simply profiler.
Example
Profiler profiler = new Profiler();
profiler.start();
//your code here
profiler.stop();
long executionTime = profiler.getExecutionTime();
Constructor Summary | |
---|---|
Profiler()
|
Method Summary | |
---|---|
long |
getExecutionTime()
Get the difference in ms between stopTime and startTime . |
java.util.Date |
getStartTime()
Get attribute startTime . |
java.util.Date |
getStopTime()
Get attribute stopTime . |
void |
reset()
Set at null attributes startTime and stopTime . |
void |
start()
Set attribute startTime with the date-time when called this method. |
void |
stop()
Set attribute stopTime with the date-time when called this method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Profiler()
Method Detail |
---|
public void start()
startTime
with the date-time when called this method.
public void stop()
stopTime
with the date-time when called this method.
public java.util.Date getStartTime()
startTime
.
startTime
.public java.util.Date getStopTime()
stopTime
.
stopTime
.public void reset()
startTime
and stopTime
.
public long getExecutionTime()
stopTime
and startTime
.stopTime
is null is valorized now.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |