Files
DP_S/src/sdk/SystemTime.h
2022-09-15 13:07:01 +08:00

51 lines
769 B
C++

#pragma once
#ifndef __SYSTEMTIME_H__
#define __SYSTEMTIME_H__
#pragma pack(push, 0x01)
class CSystemTime
{
public:
static CSystemTime* G_CSystemTime(void)
{
return *(CSystemTime**)base::GlobalData::s_systemTime_;
}
CSystemTime()
{
CallT<int>(base::CSystemTime::CSystemTime_make, this);
}
~CSystemTime()
{
CallT<int>(base::CSystemTime::CSystemTime_destroy, this);
}
int getCurSec()
{
return CallT<int>(base::CSystemTime::getCurSec, this);
}
int getCurTickCount()
{
return CallT<int>(base::CSystemTime::getCurTickCount, this);
}
int getCurDate()
{
return CallT<int>(base::CSystemTime::getCurDate, this);
}
int update()
{
return CallT<int>(base::CSystemTime::update, this);
}
};
#pragma pack(pop)
#endif // __SYSTEMTIME_H__