4 ms·
Agreed. Not sure how they concluded dividing the denominator was a good idea, seems like this exact problem (minus original float bug) shows up all the time. T
by ericpauley 8y ago
Agreed. Not sure how they concluded dividing the denominator was a good idea, seems like this exact problem (minus original float bug) shows up all the time.
The solution is clearly to multiply by 1000 before performing floor division:
`t=(now-start)*1000/freq`