As above, use a List or similar. Put the ticks into the list over the 10 mins, then when the first 10 mins expires, calc the average. From there on, re-calc the average every second or whatever, while the list is still being populated with new ticks, and, discard the ticks that are now older...