Closed KodrAus closed 4 weeks ago
When reporting metrics, it's helpful to be able to unify all samples to a standard interval, like 1 second. We could support this through the Reporter type, by adding Timestamp::align_up_to(Duration) and Timestamp::align_down_to(Duration).
Reporter
Timestamp::align_up_to(Duration)
Timestamp::align_down_to(Duration)
When reporting metrics, it's helpful to be able to unify all samples to a standard interval, like 1 second. We could support this through the
Reporter
type, by addingTimestamp::align_up_to(Duration)
andTimestamp::align_down_to(Duration)
.