Timers may be what you are looking for if you are looking for something to run in human-definable time instead of how-fast-your-computer-is-definable time. You would start the timer when entering the volume and turning off the timer when leaving the volume (same basic concept as above, just using Timers instead of Tick).