// This is a Cross Platform generic Timer for simple timing functions, like screen refresh rate
//The headers
#ifndef CPTIMER_H
#define CPTIMER_H
#include "SDL/SDL.h"
typedef unsigned long DWORD; // 4 bytes
//The timer
class CPTimer
{
private:
//The clock time when the timer started
int startTicks;
//The ticks stored when the timer was paused
int pausedTicks;
//The timer status
bool paused;
bool started;
public:
//Initializes variables
CPTimer();
//The various clock actions
void start();
void stop();
void pause();
void unpause();
//Gets the timer's time
int get_ticks();
//Checks the status of the timer
bool is_started();
bool is_paused();
};
#endif