benilla-re systems structs docs

IEvtTimerCreate

function · core · primitive

Address
0x428b30 · 458 bytes, up to 0x428cf9
Signature
uint32_t __fastcall (EvtContext *context, uint32_t delay, void *handler, void *argument, void *handler2, uint32_t a, uint32_t b, uint32_t c)
Meaning
Creates a timer due at now + delay with its delay in seconds as delay · 0.001f, and returns its id
Confidence
verified, proof two
Finding
core/events#timers
Test
core::evttimer_ticks_to_seconds_matches_binary

Finding: Timers in core: events

EventSetTimer (0x4200a0) takes a delay in milliseconds, a function and an argument, and returns a timer id for the current context: the last id freed, else the next, at least 1. The timer is due at now + delay; when the loop's timer phase finds it due, it is removed from the heap, its id is freed, and its function is called once as fastcall(&{delay · 0.001f, now}, argument) with the lock released. Due timers run in due-time order and the phase reads the clock once. EventKillTimer (0x4203e0) clears a timer's functions; a timer with none is dropped when it reaches the heap's top, and its id is freed then.

The derivation is in the doc.

Callers 2

Callees 10

Calls and jumps by a bare address, from tables/calls.tsv.