This shouldn't take much prosessor power. You're already well on the way with a chart. The only thing extra you need is to sum the last x number of seconds and divide by x. If you're not a programmer and they tell you it's complicated, tell them they're full of shit.