annotate include/timer.h @ 12:dd427b7cc459
default tip
json: replace with nxjson library
more lightweight, reduces the binary size by about 40 kb
author |
Paper <paper@paper.us.eu.org> |
date |
Fri, 15 Mar 2024 20:46:18 -0400 |
parents |
e6a594f16403 |
children |
|
rev |
line source |
0
|
1 #ifndef __timer_h
|
|
2 #define __timer_h
|
10
|
3
|
|
4 #include <windef.h>
|
|
5 #include <winuser.h>
|
0
|
6
|
7
|
7 struct timer {
|
10
|
8 UINT_PTR id;
|
0
|
9 UINT interval;
|
|
10 TIMERPROC timer_proc;
|
|
11 };
|
|
12
|
10
|
13 void timer_init(struct timer* timer, UINT interval, TIMERPROC timer_proc);
|
|
14 int timer_set(struct timer* timer);
|
|
15 int timer_stop(struct timer* timer);
|
0
|
16
|
|
17 #endif // __timer_h |