mach: Timer: wasm implementation using performance.now()

This commit is contained in:
iddev5 2022-05-23 12:54:15 +05:30 committed by Stephen Gutekanst
parent 9b7b8be285
commit e5050e856e
2 changed files with 23 additions and 10 deletions

View file

@ -85,6 +85,10 @@ const mach = {
const cv = mach.canvases[canvas];
return cv.canvas.height;
},
machPerfNow() {
return performance.now();
},
};
export { mach };