com.sun.speech.freetts.util
public class Timer extends java.lang.Object
Constructor and Description |
---|
Timer(java.lang.String name)
Creates a timer.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public Timer(java.lang.String name)
name
- the name of the timerpublic 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)