getTimeCorrection method

Future<double> getTimeCorrection({
  1. double timeout = 5.0,
})

Gets the time correction for the inlet. Parameters:

  • timeout: Maximum wait time in seconds (default: 5.0) Execution:
  • Isolated mode: Async message passing to worker isolate _getTimeCorrectionIsolated
  • Direct mode: Immediate FFI call wrapped in Future _getTimeCorrectionDirect Returns: Time correction in seconds. See also: getTimeCorrectionSync for zero-overhead direct calls

Implementation

Future<double> getTimeCorrection({double timeout = 5.0}) =>
    getTimeCorrectionEx(timeout: timeout).then((tc) => tc.offset);