fix(core): update

This commit is contained in:
2019-04-10 11:34:30 +02:00
parent f6be9b71f1
commit cff5b5a7f4
10 changed files with 895 additions and 216 deletions

View File

@@ -65,6 +65,11 @@ export class TimeStamp {
}
}
/**
* returns a boolean for wether a timestamp is younger
* @param TimeStampArg
* @param tresholdTimeArg
*/
public isYoungerThanOtherTimeStamp(TimeStampArg: TimeStamp, tresholdTimeArg: number = 0) {
if (this.milliSeconds > TimeStampArg.milliSeconds + tresholdTimeArg) {
return true;