add scheduler.now to get phase starting from 0
This commit is contained in:
parent
8c6da1a658
commit
0792d0d59d
2 changed files with 4 additions and 1 deletions
|
|
@ -49,6 +49,9 @@ export class Cyclist {
|
|||
getPhase() {
|
||||
return this.getTime() - this.origin - this.latency;
|
||||
}
|
||||
now() {
|
||||
return this.getTime() - this.origin + this.clock.minLatency;
|
||||
}
|
||||
setStarted(v) {
|
||||
this.started = v;
|
||||
this.onToggle?.(v);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue