[webkit-dev] currentTime() and UTC time
Holger Freyther
zecke at selfish.org
Mon Apr 19 19:11:39 PDT 2010
On 04/16/2010 11:50 PM, Yong Li wrote:
> Hi All
>
> The default implementation of JS Date is calling currentTime() (by
> jsCurrentTime()), so it assumes currentTime() returns current UTC time,
> and system UTC time can be changed. However, currentTime() is also used
> in most cases as a system tick count, which means it should always be
> monotonically increasing. I guess we should remove the dependency on
> currentTime() from JS Date to fix the confliction.
Hi,
slightly related. I once had a patch to use clock_gettime but I
discarded it as the call is slower than gettimeofday. I have a micro
benchmark for that here[1].
z.
[1]
http://gitorious.org/qtwebkit/performance/blobs/master/reductions/time/time.cc
More information about the webkit-dev
mailing list