MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / SetTimer

Function SetTimer

src/dolphin/src/os/OSAlarm.c:14–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12static BOOL OnReset(BOOL final);
13
14inline void SetTimer(OSAlarm* alarm)
15{
16 OSTime delta;
17
18 delta = alarm->fire - __OSGetSystemTime();
19 if (delta < 0)
20 {
21 PPCMtdec(0);
22 }
23 else if (delta < 0x80000000)
24 {
25 PPCMtdec((u32)delta);
26 }
27 else
28 {
29 PPCMtdec(0x7fffffff);
30 }
31}
32
33void OSInitAlarm(void)
34{

Callers 3

InsertAlarmFunction · 0.85
OSCancelAlarmFunction · 0.85

Calls 1

PPCMtdecFunction · 0.85

Tested by

no test coverage detected