Fixed unit tests for emscripten
Added a new Time module, plus unit tests, plus rewrite time measurement code in DrawCallPerf to use this