|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.speech.freetts.util.Timer
Keeps track of execution times.
Constructor Summary | |
Timer(java.lang.String name)
Creates a timer. |
Method Summary | |
long |
getCurrentTime()
Returns the current time. |
static void |
main(java.lang.String[] args)
The main program for performing simple tests. |
void |
reset()
Resets the timer as if it has never run before. |
void |
showTimes()
Shows timing stats. |
void |
showTimes(long overall)
Shows timing stats. |
void |
showTimesLong(long overall)
Shows detailed timing stats. |
void |
showTimesShort(long overall)
Shows brief timing stats. |
static void |
showTimesShortTitle(java.lang.String title)
Shows the timing stats title. |
void |
start()
Starts the timer running. |
void |
stop()
Stops the timer. |
void |
stop(boolean verbose)
Stops the timer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Timer(java.lang.String name)
name
- the name of the timerMethod Detail |
public void reset()
public void start()
public long getCurrentTime()
public void stop(boolean verbose)
verbose
- if true
, print out details from
this run; otherwise, don't print the detailspublic void stop()
public void showTimesLong(long overall)
overall
- the overall processing time in milliseconds or 0.public static void showTimesShortTitle(java.lang.String title)
title
- shows the title and column headings for the time
displaypublic void showTimesShort(long overall)
overall
- the overall processing time in milliseconds or 0.public void showTimes(long overall)
overall
- the overall processing time in milliseconds or 0.public void showTimes()
public static void main(java.lang.String[] args)
args
- program arguments (not used)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |