view linux/timer.h @ 4863:df50da00260a

POSIX compatible timer's callback
author nick
date Mon, 25 Feb 2002 14:24:11 +0000
parents 7bb8f7905000
children
line wrap: on
line source

#ifndef __TIMER_H
#define __TIMER_H

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

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