Modifier and Type | Field and Description |
---|---|
private long |
count |
private long |
curTime |
private long |
maxTime |
private long |
minTime |
private String |
name |
private boolean |
notReliable |
private static DecimalFormat |
percentFormatter |
private long |
startTime |
private double |
sum |
private static DecimalFormat |
timeFormatter |
Modifier and Type | Method and Description |
---|---|
private String |
fmtTime(double time)
Formats times into a standard format.
|
private String |
fmtTime(long time)
Formats times into a standard format.
|
long |
getCurrentTime()
Returns the current time.
|
static void |
main(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(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.
|
private static final DecimalFormat timeFormatter
private static final DecimalFormat percentFormatter
private long startTime
private long curTime
private long count
private double sum
private long minTime
private long maxTime
private boolean notReliable
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()
private String fmtTime(long time)
time
- the time (in milliseconds) to be formattedprivate String fmtTime(double time)
time
- the time (in seconds) to be formattedpublic void showTimesLong(long overall)
overall
- the overall processing time in milliseconds or 0.public static void showTimesShortTitle(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()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses