void Trace::EnforceTimeWindow(unsigned latest_time) { if (max_time == null_time) /* no time window configured */ return; if (latest_time <= max_time) /* this can only happen if the flight launched shortly after midnight; this check is just here to avoid unsigned integer underflow */ return; EraseEarlierThan(latest_time - max_time); }
void EraseEarlierThan(fixed time) { EraseEarlierThan((unsigned)time); }