goat3dgfx

view src/timer.h @ 9:25b911c7c35c

fixed some line endings fixed the cubemap2.jpg file in examples/cubemap/data which was resized improperly causing seams...
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 18 Nov 2013 04:10:19 +0200
parents
children 7d6b667821cf
line source
1 #ifndef TIMER_H_
2 #define TIMER_H_
4 unsigned long get_time_msec(void);
5 void sleep_msec(unsigned long msec);
7 double get_time_sec(void);
8 void sleep_sec(double sec);
11 class Timer {
12 private:
13 unsigned long start_time, pause_time;
15 public:
16 Timer();
18 void reset();
20 void start();
21 void stop();
23 bool is_running() const;
25 unsigned long get_msec() const;
26 double get_sec() const;
27 };
29 #endif // TIMER_H_