view osdep/timer.h @ 20804:cfd35d61bed3

r20711: MSGTRs for demux_avi.c r20712: better wording for "workarounding" r20739: Remove remnants of long-gone libfame. (previously applied) r20774: Adding ability to check allowed frequency range. r20775: Spelling fix: Allowable -> Allowed r20780: MSGTRs for ao_alsa.c r20781: MSGTRs for libvo/aspect.c and libvo/vo_xv.c r20782,r20783: (do not apply) r20817: add full stop at end of sentence
author kraymer
date Thu, 09 Nov 2006 18:05:06 +0000
parents f580a7755ac5
children 88bed2131f19
line wrap: on
line source

#ifndef __TIMER_H
#define __TIMER_H

extern const char *timer_name;

void InitTimer(void);
unsigned int GetTimer(void);
unsigned int GetTimerMS(void);
//int uGetTimer();
float GetRelativeTime(void);

int usec_sleep(int usec_delay);

/* timer's callback handling */
typedef void timer_callback( void );
extern unsigned set_timer_callback(unsigned ms,timer_callback func);
extern void restore_timer(void);

#endif