Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
Timer_Windows.h
Go to the documentation of this file.
1 // Timer_Windows
3 // The timer is responsible for calculating the elapsed
4 // time.
6 
7 #ifndef TIMER_WINDOWS
8 #define TIMER_WINDOWS
9 
10 #include <GL\freeglut.h>
11 #include "framework\frm_Timer.h"
12 
13 #define WRAP 0xFFFFFFFF
14 
15 class Timer_Windows : public Frm::Timer{
16  public:
17  static Frm::Timer* GetInstance(void);
18  void InitTimer(uint16 index=0){_old[index] = GetTickCount(); _new[index] = _old[index];};
20 };
21 
22 #endif
Definition: Frm_Timer.h:15
uint32 _new[10]
Definition: Frm_Timer.h:24
uint32 _old[10]
Definition: Frm_Timer.h:23
Definition: Timer_Windows.h:15
uint32 GetTime(uint16 index=0)
static Frm::Timer * GetInstance(void)
void InitTimer(uint16 index=0)
Definition: Timer_Windows.h:18
unsigned short int uint16
Definition: Frm_types.h:14
unsigned long int uint32
Definition: Frm_types.h:15
uint16 index
Definition: sample3.cpp:29