![]() ![]() Precision of this function is usually within 1 millisecond of the specified This function halts execution of the program for the specified duration. Whereas on windows it returned time since loading of the module, as now) re. GetTime() was platform dependent (on OSX and linux it was equivalent to Version Notes: Note that prior to PsychoPy 1.77.00 the behaviour of Get the current time since re was loaded. Version Notes: This method was added in PsychoPy 1.77.00 Returns :Ībsolute Unix time (i.e., whole seconds elapsed since Jan 1, 1970). The resulting files will always sort as expected when sorted inĬhronological, alphabetical, or numerical order, regardless of locale and so Names for being unique, informative (= a meaningful time stamp), and because To take the timezone into account, useĪbsolute times in seconds are especially useful to add to generated file ![]() The time (in seconds) ignores the time-zone (like time.time() This uses the same clock-base as the other timing features, like If this is called a second time, the timer willĭuration ( float or int) – The duration of the period, in seconds. flip () # the period takes into account the next frame flip # time should now be at exactly 0.5s later than when ISI.start() # was called complete ( ) ¶Ĭompletes the period, using up whatever time is remaining with aġ for success, 0 for fail (the period overran). complete () # finish the 0.5s, taking into account one 60Hz frame stim. image = 'largeFile.bmp' # could take some time ISI. start ( 0.5 ) # start a period of 0.5s stim. flip () ISI = StaticPeriod ( screenHz = 60 ) ISI. Name ( str) – Give this StaticPeriod a name for more informative logging messages.įixation. StaticPeriod will also pause/restart frame interval recording. Win ( Window) – If a Window is given then You ( the frame rate of the monitor ( leave as None if) – don’t want this accounted for) StaticPeriod ( screenHz = None, win = None, name = 'StaticPeriod' ) ¶Ī class to help insert a timing period that includes code to be run. None: Will use this clock’s format attribute str: Time will return as a string in ISO 8601 (YYYY-MM-DD_HH:MM:SS.mmmmmmZZZZ) time format codes: Time will return as a string in that format, as in time.strftime can be time since reboot, time since Unix Epoch etc.įormat ( type, str or None) – Format in which to show timestamp when converting to a string. If not applying zero then it is whatever the underlying clock uses as its base time but that is If applying zero then this will be the time since the clock was created (typically the beginning of the Returns the current time on this clock in secs (sub-ms precision). Returns the current offset being applied to the high resolution Version Notes: This class was added in PsychoPy 1.77.00 getLastResetTime ( ) ¶ That clock instance is deliberately designed always to return the Instance of it that got created when re was imported. For this clock t=0 always represents the time thatĭon’t confuse this class with core.monotonicClock which is an MonotonicClock ( start_time=None, format= ) ¶Ī convenient class to keep track of time in your experiments using aĪrbitrary times. Received, this will be the new time on the clock. Reset (or start time if no previous resets). T ( float, int or None) – With no args ( None), time will be set to the time used for last Returns the current time left on this timer in seconds with sub-ms getTime () > 0 : # after 5s will become negative # do stuff addTime ( t ) ¶Īdd more time to the CountdownTimer e.g.:ĬountdownTimer.addTime(1) while countdownTimer.getTime() > 0: Pic_to_Draw = visual.ImageStim(win, image=str(stim))ĭ.append((decisionTime))ĭ.Timer = core. RatingScale = visual.RatingScale(win, choices=, markerStart=0.5, acceptKeys='space', pos= (0.0, -0.46), disappear=True) Wondering if I am missing something obvious in this loop. The output seems to code the same response form the rating scale on every single stimulus- so it seems to advance through all the stimuli very quickly. I checked my “Pos_List” and it looks good. I am able to make a selection on the first picture, but the second image does not show up. I coded up the following series of commands, and for some reason the screen is not advancing past the picture and the rating scale. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |