This new method provides much lower performance hit time interval where
high precision timing is not needed. Implemented in bug 827287, landed
on m-c today.
On the Windows platform it gives resolution of aprox 16ms, using
GetTickCount() which is by a magnitude cheaper to call then
QueryPerformanceCounter() on most hardware.
Use NowLoRes() method when the expected time duration you are about to
work with should be more then aprox 150 milliseconds, mainly longer
timeouts. I plan to migrate some places of our code to use it where
appropriate.
This may give some performance benefit on older or exotic machines
running any version of Windows since XP to 8.
-hb-
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform