Math is hard

So far in the process of debugging this little proggie I've discovered three major math errors.
  1. The timer I'm using has some math in it that made me miss decimal places. Oops.
  2. Small bug where I was retrieving the directory list the same number of times as the stepping facter. Give a stepping factor of 500, and it'll grab the dir list 500 times. Oops.
  3. After retrieving the time taken to grab the directory list I divided that by the stepping factor. Then the total number of entries it retrieved. It should have been just divided by the number of entries retrieved. Oops.
*sigh*

Tags: