track timepoint of last update

This commit is contained in:
2024-05-27 11:31:36 +02:00
parent 57575330dd
commit a4201f4407
2 changed files with 7 additions and 0 deletions

View File

@@ -38,6 +38,9 @@ struct FlowOnly : public CCAI {
clock::time_point _time_start_offset;
// used to clamp growth rate in the void
double _time_point_last_update {getTimeNow()};
protected:
// make values relative to algo start for readability (and precision)
// get timestamp in seconds