A
download timer.h
Language: C++
LOC: 15
Project Info
TableHockey3D(tablehockey)
Server: SourceForge
Type: cvs
...ey\CVSROOT\tablehockey\src\
   Application.cpp
   Application.h
   Camera.cpp
   Camera.h
   Cube.cpp
   Cube.h
   Data.cpp
   Data.h
   Disk.cpp
   Disk.h
   FloatingText.cpp
   FloatingText.h
   Floor.cpp
   Floor.h
   Input.cpp
   Input.h
   Light.cpp
   Light.h
   log.cpp
   log.h
   main.cpp
   mmgr.cpp
   mmgr.h
   Model.cpp
   Model.h
   nommgr.h
   Puck.cpp
   Puck.h
   Pyramid.cpp
   Pyramid.h
   scene.cpp
   scene.h
   SmartPtr.h
   Sound.cpp
   Sound.h
   TableHockey.dsp
   TableHockey.dsw
   TestScene.cpp
   TestScene.h
   text.cpp
   text.h
   TextHelp.cpp
   TextHelp.h
   texture.cpp
   texture.h
   TexturedCube.cpp
   TexturedCube.h
   timer.cpp
   timer.h
   View.cpp
   View.h

/*=============================================================================
	timer.h: Basic OpenGL Framework timer implementation class

Revision history:
	* Created by Zack Smith
=============================================================================*/

#if !defined(TIMER_H__INCLUDED_)
#define TIMER_H__INCLUDED_

/// A timer class, will be rewritten soon
class CTimer
{
public:
	CTimer();
	~CTimer();
	
	/// initialize timer
	void init();
	/// update will calculate the time between now and the last update/init and store it in DTick
	void update();

	/// store time between 2 updates or init and update
	float DTick;

private:
	float sec;
	int Tick1, Tick2, initial_time, final_time;

};

#endif // !defined(TIMER_H__INCLUDED_)

/*-----------------------------------------------------------------------------
	The End.
-----------------------------------------------------------------------------*/

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us