Skip to content

ABC#

TimerStatus #

Bases: enum.Enum

The current state, of the Timer

FINISHED class-attribute instance-attribute #

FINISHED = 0

The timer has finished.

STARTED class-attribute instance-attribute #

STARTED = 1

The timer has been started.

WAITING class-attribute instance-attribute #

WAITING = 2

The timer is waiting to be started.

Note

If its waiting, the time variable, will be -1.

Timer #

Timer

The base timer, that is returned when a Timer gets started, or ends.

name instance-attribute #

name: str

The name, attached to a function, that it will call.

key instance-attribute #

key: str

The key, or unique ID given.

time instance-attribute #

time: int

The end time, of when this timer is to end. (-1 if the timer has not been started yet.)

default_time instance-attribute #

default_time: int

The default time, that this event will take.

status instance-attribute #

status: TimerStatus

The current state of this timer.