Files
itgmania212121/stepmania/src/RageTimer.h
T

30 lines
647 B
C++
Raw Normal View History

2002-10-20 05:14:39 +00:00
#ifndef RAGE_TIMER_H
#define RAGE_TIMER_H
2002-06-14 22:25:22 +00:00
/*
-----------------------------------------------------------------------------
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();
2002-06-14 22:25:22 +00:00
float GetDeltaTime(); // time between last call to GetDeltaTime()
2002-10-24 03:55:40 +00:00
float PeekDeltaTime() const;
2002-12-19 23:00:57 +00:00
static float GetTimeSinceStart(); // seconds since the program was started
2002-06-14 22:25:22 +00:00
private:
2002-12-19 23:00:57 +00:00
static void Init();
2002-10-24 03:55:40 +00:00
int m_iLastDeltaTime;
2002-06-14 22:25:22 +00:00
};
2002-10-20 05:14:39 +00:00
#endif