Now using POSIX gettimeofday to measure time