From a9b6236d9bea71d113fc8249e1dc6b7342230615 Mon Sep 17 00:00:00 2001 From: fluxlinkage Date: Wed, 10 Jul 2024 13:46:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DWindows=E4=B8=8AMSVC=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=88=90=E5=8A=9F=E7=BC=96=E8=AF=91=E7=9A=84Bug?= =?UTF-8?q?=EF=BC=88=E5=8E=9F=E5=9B=A0=E6=98=AF=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E7=9A=84GetCurrentTime=E5=87=BD=E6=95=B0=E4=B8=8EVC=E5=86=85?= =?UTF-8?q?=E7=BD=AE=E5=87=BD=E6=95=B0=E9=87=8D=E5=90=8D=EF=BC=89=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/apiserver/apiserver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/apiserver/apiserver.cpp b/example/apiserver/apiserver.cpp index 247ef016..f4d54e3f 100644 --- a/example/apiserver/apiserver.cpp +++ b/example/apiserver/apiserver.cpp @@ -121,7 +121,7 @@ using socket_t = int; #include #include "model.h" -long long GetCurrentTime() { +long long _GetCurrentTime() { auto now = std::chrono::high_resolution_clock::now(); auto duration = now.time_since_epoch(); return std::chrono::duration_cast(duration).count(); @@ -430,7 +430,7 @@ struct WorkQueue { } std::string curId = "fastllm-" + GenerateRandomID(); - auto createTime = GetCurrentTime(); + auto createTime = _GetCurrentTime(); if (isStream) { message = "";