Re: 2.4.18 clock warps 4294 seconds

From: Richard B. Johnson (root@chaos.analogic.com)
Date: Wed Jul 24 2002 - 08:37:51 EST


On Wed, 24 Jul 2002, Per Gregers Bilse wrote:

> [1.] System clock (as returned by eg time(2)) warps 4294 seconds
[SNIPPED...]

Do you have a time-daemon running that synchronizes your machine to
some other?

Run this program as:
./xxx &>xxx.log &

...and see if your machine is really jumping.

#include <stdio.h>
#include <time.h>

int main()
{
    time_t tim;
    time_t last;
    (void)time(&last);
    (void)time(&tim);
    for(;;)
    {
        (void)time(&tim);
        if(tim != last)
        {
            if((last +1) != tim)
            {
                fprintf(stderr,"Time = %08lx\n", tim);
                fprintf(stderr,"Last = %08lx\n", last);
            }
            last = tim;
        }
    }
}

Cheers,
Dick Johnson
Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips).
The US military has given us many words, FUBAR, SNAFU, now ENRON.
Yes, top management were graduates of West Point and Annapolis.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Jul 30 2002 - 14:00:15 EST