|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.util.Timing
A class for measuring how long things take.
Method Summary | |
static long |
endTime()
Print how long the timed operation took. |
static long |
endTime(String str)
Print how long the timed operation took to System.err . |
static long |
endTime(String str,
PrintStream stream)
Print how long the timed operation took. |
static void |
startTime()
Start the timing operation. |
static long |
tick()
|
static long |
tick(String str)
Print how much time has passed to System.out . |
static long |
tick(String str,
PrintStream stream)
Print how much time has passed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void startTime()
public static long endTime(String str)
System.err
.
str
- Additional string to be printed out at end of timing
public static long endTime(String str, PrintStream stream)
str
- Additional string to be printed out at end of timingstream
- PrintStream on which to write output
public static long endTime()
public static long tick(String str)
System.out
.
Time is measured from the last
tick
call, or the last call to startTime
or
when the class was loaded if there has been no previous call.
str
- Prefix of string printed with time
public static long tick(String str, PrintStream stream)
tick
call, or the last call to startTime
or
when the class was loaded if there has been no previous call.
str
- Prefix of string printed with timestream
- PrintStream that is written to
public static long tick()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |