mach: Timer: wasm implementation using performance.now()
This commit is contained in:
parent
9b7b8be285
commit
e5050e856e
2 changed files with 23 additions and 10 deletions
|
|
@ -85,6 +85,10 @@ const mach = {
|
|||
const cv = mach.canvases[canvas];
|
||||
return cv.canvas.height;
|
||||
},
|
||||
|
||||
machPerfNow() {
|
||||
return performance.now();
|
||||
},
|
||||
};
|
||||
|
||||
export { mach };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue