Switched throughput calculations to use gettimeofday since it is standard.