|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.birt.core.util.BirtTimer
public class BirtTimer
A timer class used to measure time taken for a specific operation.
| Field Summary | |
|---|---|
protected long |
endTime
|
protected long |
startTime
|
| Constructor Summary | |
|---|---|
BirtTimer()
|
|
| Method Summary | |
|---|---|
int |
delta()
|
void |
logTimeTaken(java.util.logging.Logger logger,
java.util.logging.Level level,
java.lang.String operationName)
writes "{0} takes {1} Milliseconds." to log |
void |
logTimeTaken(java.util.logging.Logger logger,
java.util.logging.Level level,
java.lang.String id,
java.lang.String operationName)
writes "{0} takes {1} Milliseconds." to log |
void |
restart()
restsrt timer |
void |
start()
start timer |
void |
stop()
stops timer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected long startTime
protected long endTime
| Constructor Detail |
|---|
public BirtTimer()
| Method Detail |
|---|
public void start()
public void stop()
public int delta()
public void restart()
public void logTimeTaken(java.util.logging.Logger logger,
java.util.logging.Level level,
java.lang.String operationName)
logger - a Java logger objectlevel - log leveloperationName - the operation name
public void logTimeTaken(java.util.logging.Logger logger,
java.util.logging.Level level,
java.lang.String id,
java.lang.String operationName)
logger - a Java logger objectlevel - log levelid - task identifieroperationName - the operation name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||