3 ms·
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
by yid 15y ago
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