source: trunk/src/timer.h @ 116

Last change on this file since 116 was 116, checked in by sam, 10 years ago

Implement a better timing mechanism for fixed framerate. Accuracy is
sub-millisecond but can be improved if we get rid of SDL timers.

  • Property svn:keywords set to Id
File size: 379 bytes
Line 
1//
2// Deus Hax (working title)
3// Copyright (c) 2010 Sam Hocevar <sam@hocevar.net>
4//
5
6//
7// The Timer class
8// ---------------
9//
10
11#if !defined __DH_TIMER_H__
12#define __DH_TIMER_H__
13
14class TimerData;
15
16class Timer
17{
18public:
19    Timer();
20    ~Timer();
21
22    float GetSeconds();
23    void WaitSeconds(float milliseconds);
24
25private:
26    TimerData *data;
27};
28
29#endif // __DH_TIMER_H__
30
Note: See TracBrowser for help on using the repository browser.