timer

Vars | |
bucket_auto_reset | Boolean operator controlling if the timer SS will automatically reset buckets if it fails to invoke callbacks for an extended period of time |
---|---|
bucket_count | How many timers are in the buckets |
bucket_list | List of buckets, each bucket holds every timer that has to run that byond tick |
bucket_reset_count | How many times bucket was reset |
bucket_resolution | world.tick_lag the bucket was designed for |
clienttime_timers | Special timers that run in real-time, not BYOND time; these are more expensive to run and maintain |
hashes | A hashlist dictionary used for storing unique timers |
head_offset | world.time of the first entry in the bucket list, effectively the 'start time' of the current buckets |
last_invoke_tick | Contains the last time that a timer's callback was invoked, or the last tick the SS fired if no timers are being processed |
last_invoke_warning | Contains the last time that a warning was issued for not invoking callbacks |
next_clienttime_timer_index | Keeps track of the next index to work on for client timers |
practical_offset | Index of the wrap around pivot for buckets. buckets before this are later running buckets wrapped around from the end of the bucket list. |
second_queue | Queue used for storing timers that do not fit into the current buckets |
timer_id_dict | List of all active timers associated to their timer ID (for easy lookup) |
Procs | |
get_timer_debug_string | Generates a string with details about the timed event for debugging purposes |
reset_buckets | Destroys the existing buckets and creates new buckets from the existing timed events |
Var Details
bucket_auto_reset

Boolean operator controlling if the timer SS will automatically reset buckets if it fails to invoke callbacks for an extended period of time
bucket_count

How many timers are in the buckets
bucket_list

List of buckets, each bucket holds every timer that has to run that byond tick
bucket_reset_count

How many times bucket was reset
bucket_resolution

world.tick_lag the bucket was designed for
clienttime_timers

Special timers that run in real-time, not BYOND time; these are more expensive to run and maintain
hashes

A hashlist dictionary used for storing unique timers
head_offset

world.time of the first entry in the bucket list, effectively the 'start time' of the current buckets
last_invoke_tick

Contains the last time that a timer's callback was invoked, or the last tick the SS fired if no timers are being processed
last_invoke_warning

Contains the last time that a warning was issued for not invoking callbacks
next_clienttime_timer_index

Keeps track of the next index to work on for client timers
practical_offset

Index of the wrap around pivot for buckets. buckets before this are later running buckets wrapped around from the end of the bucket list.
second_queue

Queue used for storing timers that do not fit into the current buckets
timer_id_dict

List of all active timers associated to their timer ID (for easy lookup)
Proc Details
get_timer_debug_string
Generates a string with details about the timed event for debugging purposes
reset_buckets
Destroys the existing buckets and creates new buckets from the existing timed events