![]() ![]() ![]() 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 Parametersįrame rate of the monitor ( leave as None if you ( the) – don’t want this accounted for) #Psychopy scale reset code#StaticPeriod ( screenHz = None, win = None, name = 'StaticPeriod' ) ¶Ī class to help insert a timing period that includes code to be run. Reboot, time since Unix Epoch etc class psychopy.clock. Its base time but that is system dependent. If not applying zero then it is whatever the underlying clock uses as If applying zero then this will be the time since the clock was created 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 ) ¶Ī 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 getTime ( ) ¶ ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |