getTimeCorrection method
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
_getTimeCorrectionDirectReturns: Time correction in seconds. See also: getTimeCorrectionSync for zero-overhead direct calls
Implementation
Future<double> getTimeCorrection({double timeout = 5.0}) => _useIsolates
? _getTimeCorrectionIsolated(timeout)
: Future.value(_getTimeCorrectionDirect(timeout));