Mercurial > mplayer.hg
comparison linux/timer.h @ 4863:df50da00260a
POSIX compatible timer's callback
author | nick |
---|---|
date | Mon, 25 Feb 2002 14:24:11 +0000 |
parents | 7bb8f7905000 |
children |
comparison
equal
deleted
inserted
replaced
4862:8a5f63217419 | 4863:df50da00260a |
---|---|
1 #ifndef __TIMER_H | |
2 #define __TIMER_H | |
1 | 3 |
2 void InitTimer(); | 4 void InitTimer(); |
3 unsigned int GetTimer(); | 5 unsigned int GetTimer(); |
4 unsigned int GetTimerMS(); | 6 unsigned int GetTimerMS(); |
5 //int uGetTimer(); | 7 //int uGetTimer(); |
6 float GetRelativeTime(); | 8 float GetRelativeTime(); |
7 | 9 |
8 int usec_sleep(int usec_delay); | 10 int usec_sleep(int usec_delay); |
9 | 11 |
12 /* timer's callback handling */ | |
13 typedef void timer_callback( void ); | |
14 extern unsigned set_timer_callback(unsigned ms,timer_callback func); | |
15 extern void restore_timer(void); | |
16 | |
17 #endif |