From b3a766a2fb334861c63de97937dee1ebbd508053 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Sun, 17 Nov 2002 08:38:49 +0000 Subject: [PATCH] Cleaned up with new timing code replacing a lot of stuff here. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@505 --- include/timer.h | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/include/timer.h b/include/timer.h index 9c07747c..6511f932 100644 --- a/include/timer.h +++ b/include/timer.h @@ -21,15 +21,12 @@ /* underlying clock rate in HZ */ #include -extern Bit32u LastTicks; - #define PIT_TICK_RATE 1193182 #define GetTicks() SDL_GetTicks() typedef void (*TIMER_TickHandler)(Bitu ticks); typedef void (*TIMER_MicroHandler)(void); -typedef void (*TIMER_DelayHandler)(void); typedef void TIMER_Block; @@ -38,18 +35,12 @@ typedef void TIMER_Block; TIMER_Block * TIMER_RegisterTickHandler(TIMER_TickHandler handler); /* Register a function to be called every x microseconds */ TIMER_Block * TIMER_RegisterMicroHandler(TIMER_MicroHandler handler,Bitu micro); -/* Register a function to be called once after x microseconds */ -TIMER_Block * TIMER_RegisterDelayHandler(TIMER_DelayHandler handler,Bitu delay); /* Set the microseconds value to a new value */ void TIMER_SetNewMicro(TIMER_Block * block,Bitu micro); - -/* This function should be called very often to support very high res timers - Although with the new timer code it doesn't matter that much */ -void TIMER_CheckPIT(void); -/* This will add ms ticks to support the timer handlers */ -void TIMER_AddTicks(Bit32u ticks); +/* This will add 1 milliscond to all timers */ +void TIMER_AddTick(void); #endif