1
0
Mirror von https://github.com/tkuschel/bees.git synchronisiert 2026-06-19 06:57:54 +02:00

time: add update_monotonic to RateEstimator

update_monotonic does not reset the counter if a new count is smaller than
earlier counts.  Useful when consuming an unsorted stream of eveent counts.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
Dieser Commit ist enthalten in:
Zygo Blaxell
2018-01-28 23:08:50 -05:00
Ursprung d367c6364c
Commit 2aacdcd95f
2 geänderte Dateien mit 14 neuen und 0 gelöschten Zeilen
+3
Datei anzeigen
@@ -81,6 +81,9 @@ namespace crucible {
// Write count
void update(uint64_t new_count);
// Ignore counts that go backwards
void update_monotonic(uint64_t new_count);
// Read count
uint64_t count() const;