Lines Matching refs:timestamp
47 std::optional<double> update(Milliseconds timestamp) override in update() argument
54 cleanup(timestamp); in update()
56 return function->calculate(readings, timestamp); in update()
59 double update(Milliseconds timestamp, double reading) override in update() argument
61 readings.emplace_back(timestamp, reading); in update()
63 cleanup(timestamp); in update()
65 return function->calculate(readings, timestamp); in update()
69 void cleanup(Milliseconds timestamp) in cleanup() argument
76 if (timestamp >= nextItemTimestamp && in cleanup()
77 timestamp - nextItemTimestamp > duration.t) in cleanup()
85 if (timestamp > duration.t) in cleanup()
88 timestamp - duration.t); in cleanup()
104 std::optional<double> update(Milliseconds timestamp) override in update() argument
111 return function->calculateForStartupInterval(readings, timestamp); in update()
114 double update(Milliseconds timestamp, double reading) override in update() argument
116 readings.emplace_back(timestamp, reading); in update()
117 return function->calculateForStartupInterval(readings, timestamp); in update()