getTimeCorrectionEx method

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

Gets the extended time correction for the inlet: the clock offset, the LSLTimeCorrection.remoteTime it was measured against, and the LSLTimeCorrection.uncertainty (full round-trip time) that bounds it.

liblsl computes all three on the same round trip and getTimeCorrection simply discards two of them, so this costs no extra network traffic and no extra native work.

Parameters:

  • timeout: Maximum wait time in seconds (default: 5.0). Only the first call blocks; later ones read a background-updated estimate. Returns: An LSLTimeCorrection. Throws: LSLException if getting time correction fails. See also: getTimeCorrectionExSync for zero-overhead direct calls

Implementation

Future<LSLTimeCorrection> getTimeCorrectionEx({double timeout = 5.0}) =>
    _useIsolates
    ? _getTimeCorrectionExIsolated(timeout)
    : Future.value(_getTimeCorrectionExDirect(timeout));