text: #ifndef CTIMER_H
  #define CTIMER_H
  //-----------------------------------------------------------------------
  //
  //  Name: CTimer.h
  //
  //  Author: Mat Buckland 2002
  //
  //	Desc: Windows timer class for the book Game AI 
  //  Programming with Neural Nets and Genetic Algorithms.
  //
  //-----------------------------------------------------------------------
  
  #include <windows.h>
  
  
  class CTimer
  {
  
  private:
  
  	LONGLONG	m_CurrentTime,
  	          m_LastTime,
  				    m_NextTime,
  				    m_FrameTime,
  				    m_PerfCountFreq;
  
  	double		m_TimeElapsed,
  				    m_TimeScale;
  
  	double		  m_FPS;
  
  
  public:
  
    //ctors
  	CTimer();
  	CTimer(float fps);
  
  
  	//whatdayaknow, this starts the timer
    void		Start();
  
  	//determines if enough time has passed to move onto next frame
    bool		ReadyForNextFrame();
  
  	//only use this after a call to the above. Returns the time elapsed 
    //since the call to ReadyForNextFrame.
  	double	GetTimeElapsed(){return m_TimeElapsed;}
  
  	double	TimeElapsed();
  
  };
  
  
  
  #endif
  
  	
  