calculateSyncTimeValue function
Implementation
int calculateSyncTimeValue(DateTime authenticationTime, DateTime syncTime) =>
(DateTime.now().millisecondsSinceEpoch +
authenticationTime.millisecondsSinceEpoch -
syncTime.millisecondsSinceEpoch) ~/
Duration.millisecondsPerSecond;