Often we had been discussing which code is faster in JS, in particular in the GUI when calling GetEntityState functions.
But we often couldn't do actual measurements as JS only has millisecond precise timestamps.
Looping over the tested code helps, but getting an actual microsecond timestamp is preferable.
SpiderMonkey comes with a function doing that and it were nice to expose it through the Engine object accessible in the GUI.
This could also be added to the AI Engine object if needed.