use double for emscripten_get_now, to not lose precision from performance.now etc.