1 /*
2  * OpenBOR - http://www.LavaLit.com
3  * -----------------------------------------------------------------------
4  * All rights reserved, see LICENSE in OpenBOR root for details.
5  *
6  * Copyright (c) 2004 - 2011 OpenBOR Team
7  */
8 
9 #ifndef TIMER_H
10 #define TIMER_H
11 
12 void borTimerInit();
13 void borTimerExit();
14 
15 /*
16 ;----------------------------------------------------------------
17 ; Proc:		timer_getinterval
18 ; In:		ECX = frequency (1 to 1193181 Hz)
19 ; Returns:	EAX = units passed since last call
20 ; Destroys:	EBX ECX EDX
21 ; Description:	Returns the time that passed since the last call,
22 ;		measured in the specified frequency.
23 ;		This function is extremely accurate, since all
24 ;		rounding errors are compensatred for.
25 ;		Only use for very short intervals!
26 ;----------------------------------------------------------------
27 */
28 unsigned timer_getinterval(unsigned freq);
29 unsigned timer_gettick();
30 
31 #endif
32