Changed float to int on critical path. Avoid unnecessary calls to gettimeofday()