|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cc.mallet.util.Timing
public class Timing
A class for timing things. Originally inspired by the Timing class in the Stanford NLP cade, but completely rewritten.
Created: Dec 30, 2004
Constructor Summary | |
---|---|
Timing()
|
Method Summary | |
---|---|
long |
elapsedTime()
Returns how much time as passed since Object creation, or the most recent call to tick(). |
long |
report(java.lang.String msg)
Like tick(), but doesn't reset the counter. |
long |
tick(java.lang.String msg)
Print to System.out how much time has passed, resetting this Timing's start time to the current time. |
long |
totalElapsedTime()
Returns the number of milliseconds since this object was created. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Timing()
Method Detail |
---|
public long tick(java.lang.String msg)
tick
call, or when this object was created.
msg
- Prefix of string printed with time
public long elapsedTime()
public long totalElapsedTime()
public long report(java.lang.String msg)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |