public class Timer extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Timer.StopTimer |
| Constructor and Description |
|---|
Timer(String name) |
Timer(String name,
boolean autoPrint) |
Timer(String prefix,
String name) |
Timer(String prefix,
String name,
boolean autoPrint) |
| Modifier and Type | Method and Description |
|---|---|
static void |
disablePrinting() |
long |
getTotalMemory()
Get total VM memory in bytes.
|
double |
getTotalTime()
Get timer total time in milliseconds.
|
void |
print() |
void |
setPrefix(String value)
Registers the prefix to be used when printing a timer.
|
Timer.StopTimer |
start() |
void |
stop() |
public Timer(String name)
public Timer(String name, boolean autoPrint)
public static void disablePrinting()
public void setPrefix(String value)
public Timer.StopTimer start()
public void stop()
public void print()
public double getTotalTime()
public long getTotalMemory()