add scheduler.now to get phase starting from 0

This commit is contained in:
Felix Roos 2022-12-26 20:55:21 +01:00
parent 8c6da1a658
commit 0792d0d59d
2 changed files with 4 additions and 1 deletions

View file

@ -44,6 +44,6 @@ function createClock(
};
const getPhase = () => phase;
// setCallback
return { setDuration, start, stop, pause, duration, getPhase };
return { setDuration, start, stop, pause, duration, getPhase, minLatency };
}
export default createClock;