Modifier and Type | Class and Description |
---|---|
static class |
Timer.Reporter
Reports task progression as
Timer.Reporter.reportIfNeeded() is called
for each loop pass |
Modifier and Type | Method and Description |
---|---|
static long |
now() |
static long |
since(long timeStamp) |
long |
summarize(long startTime)
Override to report time usage in other ways
|
void |
timedRun() |
void |
timedRun(int iterations) |
Thread |
toThread() |
protected String name
public Timer(String name)
public void timedRun()
public void timedRun(int iterations)
public long summarize(long startTime)
startTime
- public Thread toThread()
public static long since(long timeStamp)
timeStamp
- public static long now()
System.currentTimeMillis()
Copyright © 2017. All rights reserved.