Modifier and Type | Class and Description |
---|---|
class |
StopWatchWithNesting |
Modifier and Type | Method and Description |
---|---|
static StopWatch |
Timing.createStopWatch(java.lang.String name)
Create a StopWatch and register it.
|
StopWatch |
StopWatchFactory.createStopWatch(java.lang.String userSpecifiedLabel,
java.lang.String internallyGeneratedLabel,
int uniqueId,
boolean nesting)
Build an instance of a StopWatch
|
StopWatch |
StopWatch.enableMinMax() |
StopWatch |
StopWatch.enableStartStopFromAnyThread()
By default a StopWatch can be concurrently accessed
from multiple threads and each start/stop is separately
tracked.
|
StopWatch |
StopWatch.enableStdDev() |
StopWatch |
StopWatch.setUnits(java.lang.String units,
double multiplier)
Specify the units and the multiplier to use.
|
StopWatch |
StopWatch.start()
Starts the nanosecond timer.
|
StopWatch |
StopWatch.startAtSameTimeAs(StopWatch otherStopWatch)
Set the start time of this StopWatch to be
the same as the start time of another.
|
StopWatch |
StopWatch.summarizeAverageFirst()
Cause the output from summarize() to first show the average
then the cumulative.
|
StopWatch |
StopWatch.summarizeCumulativeFirst()
Cause the output from summarize() to first show the
cumulative, then the average.
|
StopWatch |
StopWatch.suppressIfCountIsZero()
This indicates that the StopWatch summary line
should not be output to the screen with
Timing.dumpTimings(java.lang.String) is called
if the getCount() value is zero. |
StopWatch |
StopWatch.suppressIfValueIsZero()
This indicates that the StopWatch summary line
should not be output to the screen with
Timing.dumpTimings(java.lang.String) is called
if the getCount() value is zero. |
Modifier and Type | Method and Description |
---|---|
static double |
Timing.adjustedAvg(StopWatch sw)
Convenience method that subtracts the estimated start/stop overhead
from the stop watch's average.
|
static double |
Timing.estimateStartStopOverhead(StopWatch sw)
Iteratively (100,000 times) invokes sw.start() followed by sw.stop() to
determine the average overhead for these calls.
|
StopWatch |
StopWatch.startAtSameTimeAs(StopWatch otherStopWatch)
Set the start time of this StopWatch to be
the same as the start time of another.
|
static void |
Timing.stopStart(StopWatch timeToStop,
StopWatch timeToStart)
This ensures that the same time is used
to stop a previous timer and restart another one.
|