Logger Rate Limiter — a cooldown per message
Each message may print once, then not again for 10 seconds. Store, per message, the next timestamp it may print.
Try:
calls: shouldPrintMessage(t, msg)
map: message → next allowed time