view 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
line wrap: on
line source

#ifndef __timer_h
#define __timer_h

#include <windef.h>
#include <winuser.h>

struct timer {
	UINT_PTR id;
	UINT interval;
	TIMERPROC timer_proc;
};

void timer_init(struct timer* timer, UINT interval, TIMERPROC timer_proc);
int timer_set(struct timer* timer);
int timer_stop(struct timer* timer);

#endif // __timer_h