Added check for negative deviation

This commit is contained in:
2023-11-25 09:10:58 +02:00
parent 69c24f6a15
commit fbf32d7946

View File

@ -294,6 +294,7 @@ export class Clock {
*
* @returns deviation between the logical time and the real time
*/
if(this.afterEvaluation<this.lastPulseAt) return 0;
return (this.afterEvaluation - this.lastPulseAt) / 1000;
}