chronon::observe::PeriodicFilter
Observes for window cycles every period cycles, starting at offset. More...
#include <ObservationFilter.hpp>
Public Functions
| Name | |
|---|---|
| bool | matches(uint64_t cycle) constperiod == 0 is treated as "always match" rather than divide-by-zero. |
Public Attributes
| Name | |
|---|---|
| uint64_t | window |
| uint64_t | period |
| uint64_t | offset |
Detailed Description
struct chronon::observe::PeriodicFilter;
Observes for window cycles every period cycles, starting at offset.
Example: window=1000, period=10000 observes cycles 0-999, 10000-10999, etc.
Public Functions Documentation
function matches
inline bool matches(
uint64_t cycle
) const
period == 0 is treated as "always match" rather than divide-by-zero.
Public Attributes Documentation
variable window
uint64_t window;
variable period
uint64_t period;
variable offset
uint64_t offset;
Updated on 2026-05-26 at 05:42:32 +0000