timestamp_in_interval
if (!timestamp_in_interval(interval_start, now, cycles)) {
!timestamp_in_interval(history_begin->cycles,