feat: allow add time to aux timer

This commit is contained in:
Carlos Valente
2024-12-01 22:20:40 +01:00
committed by Carlos Valente
parent 7dec32aea7
commit 1e8706aa73
2 changed files with 10 additions and 0 deletions
@@ -57,6 +57,11 @@ export class AuxTimerService {
return this.timer.setTime(duration);
}
@broadcastReturn
addTime(millis: number) {
return this.timer.setTime(this.timer.state.current + millis);
}
@broadcastReturn
private update() {
return this.timer.update(this.getTime());