News for hackers. Stuff that matters.
Re:Google +1 tracks mouse movements? by yid on Sunday July 24, 2011 @04:09AM (#2798949)
> * the timing functions you get from the browser are way too low resolution.*

The JS time function returns epoch milliseconds, not seconds. At the scale of network latency (hundreds if not thousands of milliseconds), the lower order bits should be effectively uniformly distributed. Resolution isn't your problem, the number of usable bits per network call is.

Re:Google +1 tracks mouse movements? by pilif on Sunday July 24, 2011 @05:37AM (#2799060)
The problem is that the JS engines in browsers rely on not-so-sophisticated APIs to get to their millisecond values. This means that yes, you do get time in milliseconds, but the value is only updated every 40 to 100 ms
Re:Google +1 tracks mouse movements? by AshleysBrain on Sunday July 24, 2011 @09:39AM (#2799357)
I think some browsers on Windows are using QueryPerformanceCounter for timing, which has microsecond precision.
Re:Google +1 tracks mouse movements? by yid on Monday July 25, 2011 @03:09AM (#2801677)
Perhaps not on modern on browsers. In Chromium on Linux, typing this in the dev console:

    x=new Date().getTime(); for(j=0;j<10000;j++); y=new Date().getTime(); for(j=0;j<10000;j++); z=new Date().getTime(); alert(x+' '+y+' '+z)
gives me high resolution timestamps:

1311577733069 1311577733083 1311577733099