Created
August 13, 2018 05:51
-
-
Save iandol/326a803ec9d0478fe0f96e6ee7d7fafd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
s = screenManager(); | |
s.windowed = [0 0 600 600]; | |
screenVals = s.open(); | |
eL = eyelinkManager(); | |
eL.isDummy = true; | |
initialise(eL, s); | |
setup(eL); | |
doFlip = false; | |
loop = 5000; | |
tt = tic; | |
for i = 1:loop | |
getSample(eL); | |
if doFlip | |
Screen('flip',s.win,[],[],2); | |
end | |
Eyelink('Message', sprintf('MSG:SYNCSTROBE value:%i', i)); | |
end | |
fprintf('\n===> V1 took %5.5g ms\n',(toc(tt)/loop)*1000); | |
tt = tic; | |
for i = 1:loop | |
getSample(eL); | |
if doFlip | |
Screen('flip',s.win,[],[],2); | |
end | |
edfMessage(eL,sprintf('MSG:SYNCSTROBE value:%i', i)); | |
end | |
fprintf('===> V2 took %5.5g ms\n',(toc(tt)/loop)*1000); | |
close(s) | |
sca |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment