Skip to main content

chronon::observe::PeriodicFilter

Observes for window cycles every period cycles, starting at offset. More...

#include <ObservationFilter.hpp>

Public Functions

Name
boolmatches(uint64_t cycle) const
period == 0 is treated as "always match" rather than divide-by-zero.

Public Attributes

Name
uint64_twindow
uint64_tperiod
uint64_toffset

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