Messages in this thread | | | Date | Wed, 24 Jul 2002 09:37:51 -0400 (EDT) | From | "Richard B. Johnson" <> | Subject | Re: 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/
| |