def _time2dict(time):
    """Convert PaStreamCallbackTimeInfo struct to dict."""
    return {'input_adc_time':  time.inputBufferAdcTime,
            'current_time':    time.currentTime,
            'output_dac_time': time.outputBufferDacTime}