public class LapStatistic extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LapStatistic.Result |
Modifier and Type | Field and Description |
---|---|
private int |
_alignLapMemColumn |
private int |
_alignLapTimeColumn |
private int |
_alignNameColumn |
private int |
_alignNumberColumn |
private int |
_alignTotalMemColumn |
private int |
_lapCounter |
(package private) static Runtime |
_runtime |
private long |
_startMem |
private long |
_startTime |
Constructor and Description |
---|
LapStatistic() |
LapStatistic(int alignNumberColumn,
int alignNameColumn,
int alignLapTimeColumn,
int alignLapMemColumn,
int alignTotalMemColumn) |
Modifier and Type | Method and Description |
---|---|
private String |
alignString(String text,
int alignment) |
LapStatistic.Result |
getLapResult() |
private static long |
getUsedMemory() |
private String |
printColumns(LapStatistic.Result result,
String title) |
private String |
printColumns(String number,
String name,
long lapTime,
long lapMem,
long totalMem) |
void |
printLapResult(String title) |
void |
printLapResultWithGc(String title) |
String |
toString(String title)
Der Rückgabewert entspricht der Ausgabe der Methode
printLapResult(String) . |
String |
toStringWithGc(String title)
Der Rückgabewert entspricht der Ausgabe der Methode
printLapResultWithGc(String) . |
private final int _alignNumberColumn
private final int _alignNameColumn
private final int _alignLapTimeColumn
private final int _alignLapMemColumn
private final int _alignTotalMemColumn
private int _lapCounter
private long _startTime
private long _startMem
static final Runtime _runtime
public LapStatistic()
public LapStatistic(int alignNumberColumn, int alignNameColumn, int alignLapTimeColumn, int alignLapMemColumn, int alignTotalMemColumn)
public LapStatistic.Result getLapResult()
public void printLapResult(String title)
public void printLapResultWithGc(String title)
private String printColumns(LapStatistic.Result result, String title)
private String printColumns(String number, String name, long lapTime, long lapMem, long totalMem)
public String toString(String title)
printLapResult(String)
.title
- Titel der Ausgabezeilepublic String toStringWithGc(String title)
printLapResultWithGc(String)
.title
- Titel der Ausgabezeileprivate static long getUsedMemory()