Here's one answer: your time measurement is buggy. See man on ftime() under Linux:
Quote:
This function is obsolete. Don't use it. If the time in seconds suffices, time(2) can
be used; gettimeofday(2) gives microseconds; clock_gettime(3) gives nanoseconds but
is not yet widely available.
Under libc4 and libc5 the millitm field is meaningful. But early glibc2 is buggy and
returns 0 there; glibc 2.1.1 is correct again.
|