Re: [webkit-dev] currentTime() and UTC time

2010-04-19 Thread tonikitoo (Antonio Gomes)
I agree with the fact that it should not rely on currentTime() as it currently does. It is probably the root of bugs like https://bugs.webkit.org/show_bug.cgi?id=31550 and many others. On Fri, Apr 16, 2010 at 11:50 AM, Yong Li yong.li.web...@gmail.com wrote: Hi All The default implementation

Re: [webkit-dev] currentTime() and UTC time

2010-04-19 Thread Darin Adler
On Apr 19, 2010, at 7:11 PM, Holger Freyther wrote: 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]. Also tangentially related, I found an article about the lack of clock_gettime on Mac OS X.

[webkit-dev] currentTime() and UTC time

2010-04-16 Thread Yong Li
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