Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating )ĪutoIt is simple, subtle, elegant. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo for _DirGetSizeEx UDFĮxamples: ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. Method of constantly polling the clock is used for greater precision.Projects: ATT - Application Translate Tool | Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. In the final hogCPUperiod the more precise Will be used, which is not especially precise, but allows the cpu to If secs=10 and hogCPU=0.2 then for 9.8s Python’s time.sleep function E.g., for detailed help on the subfunctionĬalled Version, type this: GetSecs(‘Version?’) Licensed under MIT license.įor detailed help on a subfunction SUBFUNCTIONNAME, type GetSecs(‘SUBFUNCTIONNAME?’) Return typeĬopyright (c) 2018 Mario Kleiner. 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 Parametersįrame rate of the monitor ( leave as None if you ( the) – 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. 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. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |