getTimeCorrectionSync method

double getTimeCorrectionSync({
  1. double timeout = 5.0,
})

Synchronously gets the time correction for the inlet. Direct mode only - throws LSLException if useIsolates: true. This provides maximum timing precision by eliminating all async overhead. Example:

final inlet = await LSL.createInlet<double>(streamInfo: info, useIsolates: false);
// Get time correction with zero async overhead
final timeCorrection = inlet.getTimeCorrectionSync(timeout: 0.001);

Returns: Time correction in seconds.

Implementation

double getTimeCorrectionSync({double timeout = 5.0}) =>
    requireDirect(() => _getTimeCorrectionDirect(timeout));