lkml.org 
[lkml]   [1999]   [Dec]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: gettimeofday() a special case : why?
Hi!

> >Dosemu does this now on single cpu systems.
>
> Are you sure it's 100% reliable over the time, monotone and with a
> picosecond precision and that such way can be extended to SMP?
>
> >gettimeofday always returns a time recently in the past.
>
> It's not a matter of recently in the past, but it must be _monotone_. If
> you only lose coherency between tv_sec and tv_usec you can just have a TOD
> that goes back instead of forward or equal sometime.

Ok, so you just check for monotony in userspace and fix it if it is
not :-).

Pavel
--
I'm pavel@ucw.cz. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents me at discuss@linmodems.org

-
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:55    [W:0.050 / U:0.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site