public class Timer extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Timer.StopTimer |
| Modifier and Type | Method and Description |
|---|---|
static void |
disablePrinting() |
String |
getName() |
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 static void disablePrinting()
public void setPrefix(String value)
public Timer.StopTimer start()
public void stop()
public void print()
public double getTotalTime()
public long getTotalMemory()
public String getName()