source: trunk/src/timer.h @ 128

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

Implement Timer::PollSeconds(), if necessary.

  • Property svn:keywords set to Id
File size: 404 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    float PollSeconds();
24    void WaitSeconds(float milliseconds);
25
26private:
27    TimerData *data;
28};
29
30#endif // __DH_TIMER_H__
31
Note: See TracBrowser for help on using the repository browser.