> while(1) {
> int oldsec = t.tv_sec;
> // gettimeofday(&t, NULL);
> syscall(SYS_gettimeofday, &t, NULL);
> if (t.tv_sec<oldsec)
> printf("TIME ERROR: %ds\n", oldsec-t.tv_sec);
> }
Don't know exactly what TSC and this stuff is, but I had
a very similar problem with time going backward on uniprocessor
Pentium II running Windows NT when using QueryPerformanceCounter
(the situation was quite catastrophic for our software and
I spent a day hunting for this gem).
Regards
-- Stano
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/