use performance clock for osc mode

This commit is contained in:
Jade (Rose) Rowland 2024-08-16 10:46:18 -04:00
parent 8da1d9fbf3
commit 796f741a92
5 changed files with 19 additions and 8 deletions

View file

@ -412,6 +412,11 @@ export class ClockCollator {
}
}
export function getPerformanceTimeSeconds() {
return performance.now() / 1000
}
// Floating point versions, see Fraction for rational versions
// // greatest common divisor
// export const gcd = function (x, y, ...z) {