Package | Description |
---|---|
org.dishevelled.timer |
Provides a timer class with nanosecond resolution and summary
statistics on recorded elapsed times.
|
org.dishevelled.timer.report |
Implementations of TimerReport.
|
Modifier and Type | Method and Description |
---|---|
static Timer |
Timer.loop(Runnable codeBlock,
int n)
Loop over the specified code block
n times. |
static Timer |
Timer.loop(Runnable codeBlock,
int n,
Timer t)
Loop over the specified code block
n times
with the specified timer. |
static Timer |
Timer.time(Runnable codeBlock)
Time the specified code block.
|
static Timer |
Timer.time(Runnable codeBlock,
Timer t)
Time the specified code block with the specified timer.
|
Modifier and Type | Method and Description |
---|---|
static Map<Runnable,Timer> |
Timer.loop(List<? extends Runnable> codeBlocks,
int n)
For each of the code blocks in the specified list of code blocks,
loop over the code block
n times. |
static Map<Runnable,Timer> |
Timer.loop(List<? extends Runnable> codeBlocks,
int n,
int m)
Loop over the code blocks in the specified list of code blocks
n times, executing each code block m times. |
static Map<Runnable,Timer> |
Timer.shuffle(List<? extends Runnable> codeBlocks,
int n)
For each of the code blocks in the specified list of code blocks,
executed in random order, loop over the code block
n times. |
static Map<Runnable,Timer> |
Timer.shuffle(List<? extends Runnable> codeBlocks,
int n,
int m)
Loop over the code blocks in the specified list of code blocks
n times, in random order, executing each code block
m times. |
static Map<Runnable,Timer> |
Timer.shuffle(List<? extends Runnable> codeBlocks,
int n,
int m,
Random random)
Loop over the code blocks in the specified list of code blocks
n times, in random order using the specified source of
randomness, executing each code block m times. |
static Map<Runnable,Timer> |
Timer.shuffle(List<? extends Runnable> codeBlocks,
int n,
Random random)
For each of the code blocks in the specified list of code blocks,
executed in random order using the specified source of randomness,
loop over the code block
n times. |
Modifier and Type | Method and Description |
---|---|
static Timer |
Timer.loop(Runnable codeBlock,
int n,
Timer t)
Loop over the specified code block
n times
with the specified timer. |
static Timer |
Timer.time(Runnable codeBlock,
Timer t)
Time the specified code block with the specified timer.
|
Modifier and Type | Method and Description |
---|---|
<T extends Appendable> |
TimerReport.append(Map<? extends Runnable,Timer> timers,
T appendable)
Append the specified map of timers keyed by runnables to the specified appendable.
|
void |
TimerReport.write(Map<? extends Runnable,Timer> timers,
File file)
Write the specified map of timers keyed by runnables to the specified file.
|
void |
TimerReport.write(Map<? extends Runnable,Timer> timers,
OutputStream outputStream)
Write the specified map of timers keyed by runnables to the specified output stream.
|
Modifier and Type | Method and Description |
---|---|
<T extends Appendable> |
TextTimerReport.append(Map<? extends Runnable,Timer> timers,
T appendable)
Append the specified map of timers keyed by runnables to the specified appendable.
|
<T extends Appendable> |
CsvTimerReport.append(Map<? extends Runnable,Timer> timers,
T appendable)
Append the specified map of timers keyed by runnables to the specified appendable.
|
void |
AbstractTimerReport.write(Map<? extends Runnable,Timer> timers,
File file)
Write the specified map of timers keyed by runnables to the specified file.
|
void |
AbstractTimerReport.write(Map<? extends Runnable,Timer> timers,
OutputStream outputStream)
Write the specified map of timers keyed by runnables to the specified output stream.
|
Copyright (c) 2004-2013 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).