Skip to content

Commit 5802819

Browse files
committed
Fixup: OGGetAbsoluteTime should return in seconds.
1 parent ca3ea06 commit 5802819

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

wasm/template.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ let imports = {
150150
HEAP16[pw>>1] = canvas.width;
151151
HEAP16[ph>>1] = canvas.height;
152152
},
153-
OGGetAbsoluteTime : () => { return performance.now() * 1000; },
153+
OGGetAbsoluteTime : () => { return (performance.now() * 1000)/1000000.0; },
154154

155155
Add1 : (i) => { return i+1; }, //Super simple function for speed testing.
156156

@@ -286,7 +286,6 @@ startup = async () => {
286286
canvas.addEventListener('touchmove', e => { instance.exports.HandleMotion( e.touches[0].clientX, e.touches[0].clientY, 1 ); } );
287287
}
288288

289-
console.log( instance.exports.HandleButton );
290289
if( instance.exports.HandleButton )
291290
{
292291
canvas.addEventListener('mouseup', e => { instance.exports.HandleButton( e.offsetX, e.offsetY, e.button, 0 ); return false; } );

0 commit comments

Comments
 (0)