From 46ae04cd50d09dfb00d9945c5f43d29a2744bcae Mon Sep 17 00:00:00 2001 From: hyzboy Date: Thu, 24 Apr 2025 22:45:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86DoubleTime=E6=94=B9=E5=90=8D=E4=B8=BAP?= =?UTF-8?q?reciseTime?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Win/Time.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Win/Time.cpp b/src/Win/Time.cpp index 0ba5d1d..dab8225 100644 --- a/src/Win/Time.cpp +++ b/src/Win/Time.cpp @@ -1,5 +1,6 @@ #include #include +#include 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;