calculateSyncTimeValue function

int calculateSyncTimeValue(
  1. DateTime authenticationTime,
  2. DateTime syncTime
)

Implementation

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