source: trunk/src/timer.h @ 1309

Last change on this file since 1309 was 1309, checked in by sam, 8 years ago

core: make timers second-based rather than millisecond-based.

  • Property svn:keywords set to Id
File size: 680 bytes
RevLine 
[116]1//
[221]2// Lol Engine
[116]3//
[221]4// Copyright: (c) 2010-2011 Sam Hocevar <sam@hocevar.net>
5//   This program is free software; you can redistribute it and/or
6//   modify it under the terms of the Do What The Fuck You Want To
7//   Public License, Version 2, as published by Sam Hocevar. See
8//   http://sam.zoy.org/projects/COPYING.WTFPL for more details.
9//
[116]10
11//
12// The Timer class
13// ---------------
14//
15
[748]16#if !defined __LOL_TIMER_H__
17#define __LOL_TIMER_H__
[116]18
[686]19namespace lol
20{
21
[116]22class TimerData;
23
24class Timer
25{
26public:
27    Timer();
28    ~Timer();
29
[1309]30    float Get();
31    float Poll();
32    void Wait(float seconds);
[116]33
34private:
35    TimerData *data;
36};
37
[686]38} /* namespace lol */
39
[748]40#endif // __LOL_TIMER_H__
[116]41
Note: See TracBrowser for help on using the repository browser.