public class time_tracker
extends java.lang.Object
implements java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
double |
avg
Average difference in time between consecutive calls to cycle().
|
int |
count
Number of times cycle was called since last reset.
|
double |
elapsed
Current time minus start.
|
double |
last
Last time cycle was called
|
double |
max
Maximum difference in time between consecutive calls to cycle()
|
double |
min
Minimum difference in time between consecutive calls to cycle()
|
double |
now
Current time when cycle was called.
|
double |
start
Time when constructed or reset.
|
| Constructor and Description |
|---|
time_tracker() |
| Modifier and Type | Method and Description |
|---|---|
time_tracker |
clone() |
void |
cycle()
Called periodically to measure the wall clock statistics of a periodic function.
|
void |
reset()
Reset all statistics and start the clock from now.
|
java.lang.String |
toString() |
void |
update(NMLFormatConverter nml_fc) |
public int count
public double last
public double now
public double start
public double elapsed
public double min
public double max
public double avg
public void reset()
public void cycle()
public void update(NMLFormatConverter nml_fc)
public time_tracker clone() throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic java.lang.String toString()
toString in class java.lang.Object