gettimeofday() is not present on all systems. (One such system is win32.)
When it's not present we should be able to use ftime(). This is an
obsolete POSIX function. (It doesn't matter that it's obsolete, since
we're doing a configure check for it.)
This patch makes the change. After the change we can no longer use the
timeval struct; we have to track seconds and useconds manually. It
would probably be quite a bit easier to do this in one variable by
tracking the seconds as a double. This may not be perfectly accurate,
but is probably more accurate than what we do now (which is itself very
accurate).
jason
|