javascript - Why window.performance.now() could return the same fraction part? -
i've faced weird behavior of window.performance.now()
. returns values same fraction part time.
all data below statistics, can't reproduce myself.
here possible values (n
represent ms number, it's counting normally):
n (whole number) n.995 n.99500000001 n.99500000002 n.995000000003 n.00000000001 n.000000000001 n.000000000004
so, every time it's whole number (or close it) or has fraction part close .995
.
this goes different users, windows (xp|vista|7|10) , chrome browser ( 59.0.3071.115, 55.0.2883.87, 49.0.2623.112 ), few firefox ( 52.0 ).
at same time, happens not windows users, of them returns different fraction parts.
the statistics collected multiple websites , happens of them, , started (a week ago). window.performance.now()
function not re-defined, still shows 'native code' (via .tostring()
).
any ideas why happens?
Comments
Post a Comment