pylsl/pylsl.py
def time_correction(self, timeout=FOREVER):
        """Retrieve an estimated time correction offset for the given stream.

        The first call to this function takes several miliseconds until a 
        reliable first estimate is obtained. Subsequent calls are instantaneous 
        (and rely on periodic background updates). The precision of these 
        estimates should be below 1 ms (empirically within +/-0.2 ms).
        
        Keyword arguments: 
        timeout -- Timeout to acquire the first time-correction estimate 
                   (default FOREVER).
                   
        Returns the current time correction estimate. This is the number that 
        needs to be added to a time stamp that was remotely generated via 
        local_clock() to map it into the local clock domain of this 
        machine.

        Throws a TimeoutError (if the timeout expires), or LostError (if the 
        stream source has been lost).

        """
        errcode = c_int()
        result = lib.lsl_time_correction(self.obj, c_double(timeout),
                                         byref(errcode))
        handle_error(errcode)
        return result
def time_correction(self, timeout=FOREVER):
        errcode = c_int()
        result = lib.lsl_time_correction(self.obj, c_double(timeout),
                                         byref(errcode))
        handle_error(errcode)
        return result
def time_correction ( self , timeout = FOREVER ) : errcode = c_int ( ) result = lib . lsl_time_correction ( self . obj , c_double ( timeout ) , byref ( errcode ) ) handle_error ( errcode ) return result
Retrieve an estimated time correction offset for the given stream.

        The first call to this function takes several miliseconds until a 
        reliable first estimate is obtained. Subsequent calls are instantaneous 
        (and rely on periodic background updates). The precision of these 
        estimates should be below 1 ms (empirically within +/-0.2 ms).
        
        Keyword arguments: 
        timeout -- Timeout to acquire the first time-correction estimate 
                   (default FOREVER).
                   
        Returns the current time correction estimate. This is the number that 
        needs to be added to a time stamp that was remotely generated via 
        local_clock() to map it into the local clock domain of this 
        machine.

        Throws a TimeoutError (if the timeout expires), or LostError (if the 
        stream source has been lost).
Retrieve an estimated time correction offset for the given stream .