Here's a mockup which requires finagling with an object, but realistically there's no reason why this could be built in directly into the engine. If this exists already, but under a different name, it may be worth having an alias of sorts.
After providing some details about the time range (I'm assuming here that the useful range likely is from current_time to a set point). We create an instance of an object specifically to hook user provided functions into the designated events.
In the...
call_events_during
After providing some details about the time range (I'm assuming here that the useful range likely is from current_time to a set point). We create an instance of an object specifically to hook user provided functions into the designated events.
In the...
call_events_during