mcpe/source/common/Timer.hpp
Alexander Argentakis a6d05eb6f3
Added field names for Timer (#64)
* Update Timer.hpp

* Update Timer.cpp

* Fixed member names & replaced all references
2023-08-20 21:19:04 +03:00

38 lines
759 B
C++

/********************************************************************
Minecraft: Pocket Edition - Decompilation Project
Copyright (C) 2023 iProgramInCpp
The following code is licensed under the BSD 1 clause license.
SPDX-License-Identifier: BSD-1-Clause
********************************************************************/
#pragma once
#if defined(_WIN32)
#define USE_ACCURATE_TIMER
#endif
class Timer
{
public:
Timer();
void advanceTime();
public:
float m_lastUpdateTime;
#ifndef USE_ACCURATE_TIMER
int m_lastSyncTime;
int m_unprocessedTime;
#else
double m_lastSyncTime;
double m_unprocessedTime;
#endif
float m_tickAdjustment;
float m_ticksPerSecond;
int m_ticks;
float m_renderTicks;
float m_timerSpeed;
float m_partialTicks;
};