/*----------------------------------------------------------------------------*\
|
|						     Ageia PhysX Technology
|
|							     www.ageia.com
|
\*----------------------------------------------------------------------------*/

#ifndef __TIMEWIN_H__
#define __TIMEWIN_H__

#include <smart.h>

#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#define WIN32_EXTRA_LEAN
#define NOMINMAX				//suppress windows' global min,max macros.

#include <Windows.h>
#endif

#ifdef WIN32
#define s_clTime	clWinTime	//this is so we can say "new s_clTime" and stay platform independent.
class clWinTime //: public clTime
	{
//	milisec lstTime;
	second  lstTimeS;
	DWORD previousTime;

	public:
	clWinTime();
	~clWinTime();
	
	//hi precision timer:
	second GetElapsedSeconds();	//returns ms elapsed since last call.
	second PeekElapsedSeconds();
	static double GetTimeTicks();
	static second GetClockFrequency();
	};


#elif LINUX
#define s_clTime	clLinuxTime	//this is so we can say "new s_clTime" and stay platform independent.

class clLinuxTime //: public clTime
	{
//	milisec lstTime;
	second  lstTimeS;

	public:
	clLinuxTime();
	~clLinuxTime();

	//hi precision timer:
	second GetElapsedSeconds();	//returns ms elapsed since last call.
	second PeekElapsedSeconds();
		 
	second GetTimeSeconds();
	};
#endif
#endif //__TIMEWIN_H__
//AGCOPYRIGHTBEGIN
///////////////////////////////////////////////////////////////////////////
// Copyright © 2005 AGEIA Technologies.
// All rights reserved. www.ageia.com
///////////////////////////////////////////////////////////////////////////
//AGCOPYRIGHTEND
	