From 698b1ebacc299fb8f34e08d97ba2d1223d846183 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Thu, 24 Apr 2025 22:44:52 +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/SocketInputStream.cpp | 4 ++-- src/SocketOutputStream.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/SocketInputStream.cpp b/src/SocketInputStream.cpp index b735d64..383bd0e 100644 --- a/src/SocketInputStream.cpp +++ b/src/SocketInputStream.cpp @@ -154,7 +154,7 @@ namespace hgl size_t left_bytes = size; #endif//HGL_OS == HGL_OS_Windows -// const double start_time=GetDoubleTime(); +// const double start_time=GetPreciseTime(); while(left_bytes>0) { @@ -212,7 +212,7 @@ namespace hgl } } -// const double end_time=GetDoubleTime(); +// const double end_time=GetPreciseTime(); // LOG_INFO(OS_TEXT("SocketInputStream::ReadFully() time: ")+OSString(end_time-start_time)); diff --git a/src/SocketOutputStream.cpp b/src/SocketOutputStream.cpp index 2151a3f..e5621d7 100644 --- a/src/SocketOutputStream.cpp +++ b/src/SocketOutputStream.cpp @@ -101,7 +101,7 @@ namespace hgl const os_char *err_str; char *p=(char *)buf; -// const double start_time=GetDoubleTime(); +// const double start_time=GetPreciseTime(); #if HGL_OS == HGL_OS_Windows int result = 0; @@ -156,7 +156,7 @@ namespace hgl left_bytes-=result; } -// const double end_time=GetDoubleTime(); +// const double end_time=GetPreciseTime(); // LOG_INFO(OS_TEXT("SocketOutputStream::WriteFully() time: ")+OSString(end_time-start_time));