@OurFlagIsMined Your method is for displaying the number of VACs per minute at any time, and it’s a good way of doing it. @Jadester requested a counter of all the VACs during a timer that would be manually set and stopped, then getting the VACs per second of that whole duration.
This is done as simply as increasing a counter each time “VAC” is found in a message, then dividing this number by the difference in seconds between stop and start time.
But frankly, I think VACs per minute is more useful.
edit, improved VAC/min counter:
Each time “VAC” is encountered, add a timestamp to a list container. Also iterate from the back of the list and remove timestamps older than one minute. At any time the VAC per minute is requested, remove timestamps older than one minute again and return the size of the list container.