isolver / ioHub

A Python program, running as an independent process, that provides a 'proxy like' service for experiment runtimes ( psychopy ) and devices ( keyboard, mouse, parallel port, eye tracker, ... ).
19 stars 14 forks source link

Switch PsychoPy clock in Windows to use ctypes wrapped QPC implementation #59

Closed isolver closed 11 years ago

isolver commented 11 years ago

This is so the default timer in PsychoPy is using the exact same clock as ioHub, and the same offset into the timebase is being used by the Experiment and ioHub Processes.

The result: times taken in the experiment script using the default timer will be in the identical time base as all ioHub events received by the experiment.

isolver commented 11 years ago

Done. Pull request accepted into psychopy.

Furthermore, now ioHub and the psychopy core.getTime and logging.defaultClock use the identical time base with ioHub (as long as the logging Clock is not changed by the user).

This will make it easier to compare ioHub event times with times from psychopy that use noe of the above mentioned time base. For example the flip times returned from window.flip are now using the same time base as ioHub. no need to get the time from ioHub after a flip anymore.