// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
-
#include <config.h>
#include <math.h>
float global_time = 0;
-Timer2::Timer2()
+Timer::Timer()
: period(0), cycle_start(0), cyclic(false)
{
}
-Timer2::~Timer2()
+Timer::~Timer()
{
}
void
-Timer2::start(float period, bool cyclic)
+Timer::start(float period, bool cyclic)
{
this->period = period;
this->cyclic = cyclic;
}
bool
-Timer2::check()
+Timer::check()
{
if(period == 0)
return false;