
//watch for double include
#ifndef CFRAMERATE_H
#define CFRAMERATE_H


#include "singleton.h"

#define g_Timer CTimer::GetSingleton()

class CTimer: public Singleton <CTimer>
{
public:

  float timer;				//used to check the current time
  float timerdiff;			//used to determine the time elapsed
  float secsperframe;		//used to hold the value for how many seconds have elapsed between frames
  float desireddistance;	//desired distance to move in a second
  float movementvalue;		//value to move by each frame

  

  void          Init(float tfps);
  void          SetSpeedFactor();
};


#endif