* Move GetTickCount() hacks to porting.h and replace by a real call to SDL_GetTicks().
[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 #include "engine.h"\r
13 \r
14 class CGlobalTimer : public ITask\r
15 {\r
16 public:\r
17         CGlobalTimer();\r
18         virtual ~CGlobalTimer();\r
19         AUTO_SIZE;\r
20         \r
21         static float dT;\r
22         static unsigned long lastFrameIndex;\r
23         static unsigned long thisFrameIndex;\r
24 \r
25         bool Start();\r
26         void Update();\r
27         void Stop();\r
28 };\r
29 \r
30 #endif // !defined(AFX_GLOBALTIMER_H__90C3FE42_3400_4978_8BC5_7D905F3C8E63__INCLUDED_)\r