A time-ordered log holds the start and end of every event. Decide whether any event lasted longer than a timeout — then do it in constant memory, and from files.
A time-ordered log holds the start and end of every event. Decide whether any event lasted longer than a timeout — then do it in constant memory, and from files.
The discussion opens with the full question.