cleaning up

This commit is contained in:
Jade (Rose) Rowland 2024-08-17 17:26:46 -04:00
parent 73ee84a1fb
commit 117f7fa4b5
2 changed files with 11 additions and 9 deletions

View file

@ -390,8 +390,7 @@ export class ClockCollator {
this.timeAtPrevOffsetSample = null;
};
}
calculateTimestamp(currentTime, targetTime) {
calculateOffset(currentTime) {
const targetClockTime = this.getTargetClockTime();
const diffBetweenTimeSamples = targetClockTime - this.timeAtPrevOffsetSample;
const newOffsetTime = targetClockTime - currentTime;
@ -419,8 +418,11 @@ export class ClockCollator {
}
}
const timestamp = this.offsetTime + targetTime;
return timestamp;
return this.offsetTime;
}
calculateTimestamp(currentTime, targetTime) {
return this.calculateOffset(currentTime) + targetTime
}
}