1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-27 17:28:41 +00:00

Time: Change old u32 timestamps to 64-bit (#5818)

MacOSX build fix + cleanups
This commit is contained in:
SmallJoker 2017-05-26 14:03:36 +02:00 committed by GitHub
parent 4d5ce8478c
commit d99b6fed55
18 changed files with 75 additions and 96 deletions

View file

@ -30,24 +30,24 @@ with this program; if not, write to the Free Software Foundation, Inc.,
class TimeTaker
{
public:
TimeTaker(const char *name, u32 *result=NULL,
TimePrecision=PRECISION_MILLI);
TimeTaker(const std::string &name, u64 *result=NULL,
TimePrecision prec=PRECISION_MILLI);
~TimeTaker()
{
stop();
}
u32 stop(bool quiet=false);
u64 stop(bool quiet=false);
u32 getTimerTime();
u64 getTimerTime();
private:
const char *m_name;
u32 m_time1;
std::string m_name;
u64 m_time1;
bool m_running;
TimePrecision m_precision;
u32 *m_result;
u64 *m_result;
};
#endif