-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Linux/Timeglue: Allow clock base selection via PsychTweak().
PsychTweak('GetSecsClock', clockid); now allows to select the main clock, aka reference clock, aka GetSecs() clock, primarily used for timing and time stamping in Psychtoolbox by mex files like Screen, PsychPortAudio, IOPort, PsychHID, GetSecs, WaitSecs, ... Default is clockid 0, aka wall clock / gettimeofday / CLOCK_REALTIME clock, for backwards compatibility with PTB on Linux since the year 2007. clockid 1, aka CLOCK_MONOTONIC, may come in handy to avoid time jumps due to system admin, leap seconds, NTP (mis-)adjustments/jumps etc. if one doesn't need UTC time sync across machines. As most of Linux low level subsystems like graphics and display, ALSA sound, HID input etc. deliver and expect CLOCK_MONOTONIC times, this can avoid clock remapping. A few more Posix defined clocks. -> PsychTweak and Linux time glue have been updated accordingly. -> Some verification is still missing, but we are defaulting to the old clock behaviour, so no worries of regressions.
- Loading branch information
Showing
9 changed files
with
151 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters