将DoubleTime改名为PreciseTime

This commit is contained in:
hyzboy 2025-04-24 22:45:10 +08:00
parent 0948b3a625
commit 46ae04cd50

View File

@ -1,5 +1,6 @@
#include<hgl/platform/Platform.h>
#include<hgl/math/TimeConst.h>
#include<hgl/Time.h>
namespace hgl
{
@ -72,7 +73,7 @@ namespace hgl
* ()
* @return ()
*/
double GetDoubleTime() ///<取得当前时间(双精度,单位秒)
PreciseTime GetPreciseTime() ///<取得当前时间(双精度,单位秒)
{
return(double(GetMicroTime()) / HGL_MICRO_SEC_PER_SEC);
}
@ -81,7 +82,7 @@ namespace hgl
*
* @param time ()
*/
void WaitTime(double t)
void WaitTime(const PreciseTime &t)
{
if(t<=0)return;