lkml.org 
[lkml]   [2002]   [Jul]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: 2.4.18 clock warps 4294 seconds
    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/

    \
     
     \ /
      Last update: 2005-03-22 13:27    [W:3.059 / U:0.476 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site