public static class Timer.Reporter extends Object
reportIfNeeded()
is called
for each loop passConstructor and Description |
---|
Reporter(long reporteringInterval) |
Reporter(long reportingInterval,
String message) |
Modifier and Type | Method and Description |
---|---|
Timer.Reporter |
disable() |
int |
getCount() |
void |
reportFinishTime() |
boolean |
reportIfNeeded()
Report relevant information regarding current looping speed
Reports are internally synchronized, thus parallel looping
is also ok.
|
void |
setCount(int counts) |
public Reporter(long reporteringInterval)
public Reporter(long reportingInterval, String message)
reportingInterval
- in millisecondspublic Timer.Reporter disable()
public boolean reportIfNeeded()
loopCount
- public void reportFinishTime()
public int getCount()
Timer.Reporter
has been throughpublic void setCount(int counts)
Copyright © 2017. All rights reserved.