Here, how you get accurate measurements without an accurate timer, while what you do often happens, and I hope they do it in your case.
/ . :
var start = Date.now();
... (stuff to be timed)
var now = Date.now();
if (DEBUG.enabled) {
var profile_this_iter = now - start;
profile += (profile_this_iter - profile) * 0.02;
}
0,02 . , . , 0,5 , 1 0 ( 1 ).
, , . , javascript FPS. , , . , , - . ( 0,02) ( ), , , ,