// SpectatorTimer.hpp ***********************************************//
// Created     Owner     Modification                                //
// Copyright Microsoft Corporation, 2001                             //
// --------    ------    -------------                               //
// 12/12/2001  sdemar    provides timer objects for state engine     //
//*******************************************************************//

#if !defined(CSPECTATOR_TIMER_MSR_)
#define CSPECTATOR_TIMER_MSR_

// #include "MW4\MW4.hpp" // gos_GetElapsedTime()

class CSpectatorTimer
{
public:
	CSpectatorTimer();                            // ctor
	~CSpectatorTimer();                           // dtor
	double GetTimeRemaining(void);                
    bool CheckExpired(double& dblElapsed = *(double*)0); // return: expired? dblElapsed: seconds remaing in timer
	void Initialize(const double duration);       // intializes timer to new duration
	void Expire(void);                            // sets timer to 0.0


private:
	double m_startTime, m_expireTime;
	bool m_fIsExpired;

};
#endif // !defined(CSPECTATOR_TIMER_MSR_)