public class PrintUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
printCounters(Collection<Counter> counters,
PrintStream printStream)
Prints the statistics for the given counters in the specified print stream.
|
static void |
printCounters(Collection<Counter> counters,
PrintStream printStream,
TimeUnit timeUnit)
Prints the statistics for the given counters in the specified print stream.
|
static void |
printStopwatch(Stopwatch stopwatch,
PrintStream printStream)
Prints the statistics for the given stopwatch in the specified print stream.
|
static void |
printStopwatch(Stopwatch stopwatch,
PrintStream printStream,
TimeUnit timeUnit)
Prints the statistics for the given stopwatch in the specified print stream.
|
public static void printStopwatch(Stopwatch stopwatch, PrintStream printStream)
stopwatch - the stopwatch to be printedprintStream - the print stream to which statistics will be sentNullPointerException - if a null stopwatch or print stream is receivedpublic static void printCounters(Collection<Counter> counters, PrintStream printStream)
counters - the counters to be printedprintStream - the print stream to which statistics will be sentNullPointerException - if a null stopwatch or print stream is receivedpublic static void printStopwatch(Stopwatch stopwatch, PrintStream printStream, TimeUnit timeUnit)
stopwatch - the stopwatch to be printedprintStream - the print stream to which statistics will be senttimeUnit - the time unit in which elapsed times will be displayed; if null, the
default time unit specified for each counter will be appliedNullPointerException - if a null stopwatch or print stream is receivedpublic static void printCounters(Collection<Counter> counters, PrintStream printStream, TimeUnit timeUnit)
counters - the counters to be printedprintStream - the print stream to which statistics will be senttimeUnit - the time unit in which elapsed times will be displayed; if null, the
default time unit specified for each counter will be appliedNullPointerException - if a null collection or print stream is receivedCopyright © 2020. All rights reserved.