Module Expr Str Assign NameStore Str Assign NameStore Str ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str Str keyword ListLoad keyword ListLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str keyword ListLoad Str keyword ListLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword ListLoad NameLoad NameLoad keyword NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Global identifier If NameLoad body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore Call NameLoad If CompareEq Call NameLoad NameLoad NameLoad Num body Raise Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword ListLoad NameLoad NameLoad NameLoad keyword NameLoad Assign NameStore Dict FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad NameLoad decorator_list Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Raise Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str keyword ListLoad Str keyword ListLoad NameLoad keyword NameLoad keyword Num FunctionDef arguments args NameParam defaults body Expr Str Global identifier Expr Call NameLoad NameLoad Delete SubscriptDel NameLoad Index NameLoad decorator_list
N/A N/A Time management routines.
 N/A __docformat__ restructuredtext N/A __version__ $Id: $ ctypes * N/A dll N/A SDL_GetTicks N/A N/A dll function SDL_GetTicks Get the number of milliseconds since the SDL library initialization.

    Note that this value wraps if the program runs for more than ~49 days.

    :rtype: int
     args N/A arg_types N/A return_type c_uint N/A SDL_Delay N/A N/A dll function SDL_Delay Wait a specified number of milliseconds before returning.

    :Parameters:
        `ms` : int
            delay in milliseconds

     args N/A ms arg_types N/A c_uint return_type None N/A _SDL_TimerCallback N/A CFUNCTYPE c_int c_uint N/A _SDL_SetTimer N/A N/A dll private_function SDL_SetTimer arg_types N/A c_uint _SDL_TimerCallback return_type c_int N/A _timercallback_ref None SDL_SetTimer N/A N/A interval callback N/A N/A N/A Set a callback to run after the specified number of milliseconds has
    elapsed.

    The callback function is passed the current timer interval
    and returns the next timer interval.  If the returned value is the
    same as the one passed in, the periodic alarm continues, otherwise a
    new alarm is scheduled.  If the callback returns 0, the periodic alarm
    is cancelled.

    To cancel a currently running timer, call ``SDL_SetTimer(0, None)``.

    The timer callback function may run in a different thread than your
    main code, and so shouldn't call any functions from within itself.

    The maximum resolution of this timer is 10 ms, which means that if
    you request a 16 ms timer, your callback will run approximately 20 ms
    later on an unloaded system.  If you wanted to set a flag signaling
    a frame update at 30 frames per second (every 33 ms), you might set a
    timer for 30 ms::

          SDL_SetTimer((33/10)*10, flag_update)

    If you use this function, you need to pass `SDL_INIT_TIMER` to
    `SDL_Init`.

    Under UNIX, you should not use raise or use SIGALRM and this function
    in the same program, as it is implemented using ``setitimer``.  You
    also should not use this function in multi-threaded applications as
    signals to multi-threaded apps have undefined behavior in some
    implementations.

    :Parameters:
        `interval` : int
            Interval before callback, in milliseconds.
        `callback` : function
            Callback function should accept one argument, the number of
            milliseconds elapsed, and return the next timer interval,
            in milliseconds.
     N/A _timercallback_ref N/A callback N/A N/A _timercallback_ref N/A _SDL_TimerCallback callback N/A N/A _timercallback_ref N/A _SDL_TimerCallback N/A N/A N/A _SDL_SetTimer interval _timercallback_ref -1 N/A N/A N/A N/A N/A SDL error SDL_Exception N/A N/A N/A SDL error SDL_GetError N/A N/A _SDL_NewTimerCallback N/A CFUNCTYPE c_uint c_int c_void_p N/A _SDL_AddTimer N/A N/A dll private_function SDL_AddTimer arg_types N/A c_uint _SDL_NewTimerCallback c_void_p return_type c_void_p N/A _timer_refs N/A SDL_AddTimer N/A N/A interval callback param N/A N/A N/A Add a new timer to the pool of timers already running.

    :Parameters:
        `interval` : int
            The interval before calling the callback, in milliseconds.
        `callback` : function
            The callback function.  It is passed the current timer
            interval, in millseconds, and returns the next timer interval,
            in milliseconds.  If the returned value is the same as the one
            passed in, the periodic alarm continues, otherwise a new alarm
            is scheduled.  If the callback returns 0, the periodic alarm is
            cancelled.  An example callback function is::

                def timer_callback(interval, param):
                    print('timer called after %d ms.' % interval)
                    return 1000     # call again in 1 second

        `param` : any
            A value passed to the callback function.

    :rtype: int
    :return: the timer ID
     _callback N/A N/A interval _ignored_param N/A N/A N/A N/A callback interval param N/A N/A func N/A _SDL_NewTimerCallback _callback N/A result N/A _SDL_AddTimer interval func None N/A N/A result N/A N/A N/A N/A N/A SDL error SDL_Exception N/A N/A N/A SDL error SDL_GetError N/A N/A _timer_refs N/A result func N/A result N/A N/A _SDL_RemoveTimer N/A N/A dll private_function SDL_RemoveTimer args N/A t arg_types N/A c_void_p return_type c_int error_return 0 SDL_RemoveTimer N/A N/A t N/A N/A N/A Remove one of the multiple timers knowing its ID.

    :Parameters:
        `t` : int
            The timer ID, as returned by `SDL_AddTimer`.

     N/A _timer_refs N/A N/A _SDL_RemoveTimer t N/A N/A _timer_refs N/A t N/A