57ee7525c38492815b4827eb2eddc26feb228109
[matthijs/ABM2.git] / ABM2 / Engine / GlobalTimer.h
1 // GlobalTimer.h: interface for the CGlobalTimer class.\r
2 //\r
3 //////////////////////////////////////////////////////////////////////\r
4 \r
5 #if !defined(AFX_GLOBALTIMER_H__90C3FE42_3400_4978_8BC5_7D905F3C8E63__INCLUDED_)\r
6 #define AFX_GLOBALTIMER_H__90C3FE42_3400_4978_8BC5_7D905F3C8E63__INCLUDED_\r
7 \r
8 #if _MSC_VER > 1000\r
9 #pragma once\r
10 #endif // _MSC_VER > 1000\r
11 \r
12 /* HACK to make things compile */\r
13 #define GetTickCount() 0\r
14 \r
15 #include "engine.h"\r
16 \r
17 class CGlobalTimer : public ITask\r
18 {\r
19 public:\r
20         CGlobalTimer();\r
21         virtual ~CGlobalTimer();\r
22         AUTO_SIZE;\r
23         \r
24         static float dT;\r
25         static unsigned long lastFrameIndex;\r
26         static unsigned long thisFrameIndex;\r
27 \r
28         bool Start();\r
29         void Update();\r
30         void Stop();\r
31 };\r
32 \r
33 #endif // !defined(AFX_GLOBALTIMER_H__90C3FE42_3400_4978_8BC5_7D905F3C8E63__INCLUDED_)\r