lkml.org 
[lkml]   [1999]   [Jan]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: `do_gettimeoffday' broken on i686 SMP
Date
Hi,

> 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/

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