pub fn should_report(&self) -> bool {
        let timestamp = self.last_timestamp.get();
        let now = Instant::now();
        if timestamp.is_none_or(|ts| now - ts > self.interval) {
            self.last_timestamp.set(Some(now));
            true
        } else {
            false
        }
    }
Should be called sparingly, since it involves moderately heavy operations (getting the current time via a syscall).
core/lib/instrument/src/filter.rs