将DoubleTime改名为PreciseTime

This commit is contained in:
2025-04-24 22:44:09 +08:00
parent 365075ba88
commit 51bd01e407
3 changed files with 10 additions and 8 deletions

View File

@@ -5,19 +5,21 @@
namespace hgl //时间
{
using PreciseTime=double;
int GetTimeZone(); ///<返回时区的时差(单位:秒)
uint64 GetMilliStartTime(); ///<取得毫秒程序启动时间(单位1/1000秒)
uint64 GetMicroStartTime(); ///<取得微秒程序启动时间(单位1/1000000秒)
double GetDoubleStartTime(); ///<取得秒程序启动时间(单位:秒)
PreciseTime GetPreciseStartTime(); ///<取得秒程序启动时间(单位:秒)
uint64 GetTime(); ///<取得当前时间(单位1/1000秒)
uint64 GetMicroTime(); ///<取得当前时间(单位1/1000000秒)
double GetDoubleTime(); ///<取得当前时间(单位:秒)
PreciseTime GetPreciseTime(); ///<取得当前时间(单位:秒)
double GetLocalDoubleTime(); ///<取得本地当前时间(单位:秒)
PreciseTime GetLocaPreciseTime(); ///<取得本地当前时间(单位:秒)
void WaitTime(double); ///<等待一定时间(单位:秒)
void WaitTime(const PreciseTime &); ///<等待一定时间(单位:秒)
}//namespace hgl
#endif//HGL_TIME_INCLUDE