public class PrintUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
printDetails(Stopwatch stopwatch,
PrintStream printStream)
Prints detailed information about timing sessions from the given stopwatch in the
specified print stream.
|
static void |
printDetails(Stopwatch stopwatch,
PrintStream printStream,
PrintStyle printStyle)
Prints detailed information about timing sessions from the given stopwatch in the
specified print stream, with a custom
PrintStyle. |
static void |
printSummary(Stopwatch stopwatch,
PrintStream printStream)
Prints summarized elapsed times from the given stopwatch in the specified print stream.
|
static void |
printSummary(Stopwatch stopwatch,
PrintStream printStream,
PrintStyle printStyle)
Prints summarized elapsed times from the given stopwatch in the specified print stream,
with a custom
PrintStyle. |
public static void printSummary(Stopwatch stopwatch, PrintStream printStream)
The default PrintStyle will be applied.
stopwatch - the stopwatch to be printedprintStream - the print stream to which data will be sentNullPointerException - if a null stopwatch or print stream is receivedpublic static void printSummary(Stopwatch stopwatch, PrintStream printStream, PrintStyle printStyle)
PrintStyle.stopwatch - the stopwatch to be printedprintStream - the print stream to which data will be sentprintStyle - the PrintStyle to be applied; if null, the default
PrintStyle will be appliedNullPointerException - if a null stopwatch or print stream is receivedIllegalArgumentException - if the specified PrintStyle is not compatible with
PrintFormat.SUMMARIZEDpublic static void printDetails(Stopwatch stopwatch, PrintStream printStream)
The default PrintStyle will be applied.
stopwatch - the stopwatch to be printedprintStream - the print stream to which information will be sentNullPointerException - if a null stopwatch or print stream is receivedpublic static void printDetails(Stopwatch stopwatch, PrintStream printStream, PrintStyle printStyle)
PrintStyle.stopwatch - the stopwatch to be printedprintStream - the print stream to which information will be sentprintStyle - the PrintStyle to be applied; if null, the default
PrintStyle will be appliedNullPointerException - if a null stopwatch or print stream is receivedIllegalArgumentException - if the specified PrintStyle is not compatible with
PrintFormat.DETAILEDCopyright © 2021. All rights reserved.