View Single Post
  #11   Spotlight this post!  
Unread 09-02-2013, 16:25
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: 60 / getPeriod() returns 3,000,000

Quote:
Originally Posted by Kevin Sevcik View Post
(30 seconds later) EDIT: Also, why not put something in your GetRate function that tosses out obviously incorrect values like a period less than 0.0001 seconds or something?
It's better to understand what's causing the problem, fix it if you can, and make it work right than to cover up the problem.

But if you do filter out the glitches in software, then increment an error counter each time it happens. Monitor that error counter during non-competition use to make sure it isn't getting worse and worse over time.