Files
itgmania212121/stepmania/src/RageTimer.h
T
2002-12-19 23:13:52 +00:00

30 lines
647 B
C++

#ifndef RAGE_TIMER_H
#define RAGE_TIMER_H
/*
-----------------------------------------------------------------------------
File: RageTimer.h
Desc: Timer services.
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Chris Danford
-----------------------------------------------------------------------------
*/
class RageTimer
{
public:
RageTimer();
unsigned int GetTicks();
float GetDeltaTime(); // time between last call to GetDeltaTime()
float PeekDeltaTime() const;
static float GetTimeSinceStart(); // seconds since the program was started
private:
static void Init();
int m_iLastDeltaTime;
};
#endif