Debian Codegraph @

src/timer.h

raw symbols SCIP
1 // Copyright 2005 by Anthony Liekens [email protected]
2
3 #ifndef TIMER_H
4 #define TIMER_H
5
6 #include <SDL/SDL.h>
7 #include <iostream>
8 #include <string>
9 #include <sstream>
10
11 class Timer {
12 private:
13 Uint32 startTime, pauseTime;
14 bool paused;
15 public:
16 Timer();
17
18 void start();
19 void pause(); // this function does both pause and resume the clock
20
21 bool isPaused();
22 Uint32 getTime();
23 std::string getTimeMMSSHH();
24 static std::string getTimeMMSS(Uint32);
25
26 };
27
28 #endif