aboutsummaryrefslogtreecommitdiff
path: root/system/include
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-10-29 14:48:40 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-10-29 14:48:40 -0700
commit7c909b0db1a699f9a4f71189a56e51c065557a41 (patch)
treefa43a55a454546abccf7955b6ab942bde343d591 /system/include
parent7b44c1589112d5f3df207b1fee5d19c49dab9cc9 (diff)
use double for emscripten_get_now, to not lose precision from performance.now etc.
Diffstat (limited to 'system/include')
-rw-r--r--system/include/emscripten/emscripten.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/include/emscripten/emscripten.h b/system/include/emscripten/emscripten.h
index d30620ec..dd1e01a4 100644
--- a/system/include/emscripten/emscripten.h
+++ b/system/include/emscripten/emscripten.h
@@ -203,7 +203,7 @@ void emscripten_get_canvas_size(int *width, int *height, int *isFullscreen);
* absolute time, and is only meaningful in comparison to
* other calls to this function. The unit is ms.
*/
-float emscripten_get_now();
+double emscripten_get_now();
/*
* Simple random number generation in [0, 1), maps to Math.random().