public class DutyCycleTracker extends Object
| Constructor and Description |
|---|
DutyCycleTracker() |
| Modifier and Type | Method and Description |
|---|---|
void |
measureAndUpdate(long nowNs)
Pass measurement to tracker and report updating last known clock time with time.
|
void |
reportMeasurement(long durationNs)
Callback called to report duration of cycle.
|
String |
toString() |
void |
update(long nowNs)
Update the last known clock time.
|
public final void update(long nowNs)
nowNs - to update with.public final void measureAndUpdate(long nowNs)
nowNs - of the measurement.public void reportMeasurement(long durationNs)
durationNs - of the duty cycle.Copyright © 2014-2023 Real Logic Limited. All Rights Reserved.