From: Avdi Grimm Date: 2007-03-02T08:37:12+09:00 Subject: Re: replacing the use of gettimeofday in the scheduler On 3/1/07, Yukihiro Matsumoto wrote: > It can have OS-specific implementation, but I want the core behavior > being common on most (if not all) platforms. Besides that, I have no > idea to fix this "bug" on _any_ platform right now. Any idea? It looks like sufficiently recent POSIX standards DO have a solution for this. I'd like to do some more research on this, but right now I don't have time. For anyone who wants to take a look at it, here's a starting point: http://www.opengroup.org/onlinepubs/009695399/basedefs/time.h.html Pay particular attention to CLOCK_MONOTONIC and the timer_*() functions. Hopefully I'll be able to look at this in greater detail over the weekend. -- Avdi