From 326d3e312c74726814c39c9d112faab03c4a167c Mon Sep 17 00:00:00 2001
From: QuakeGod <QuakeGod@sina.com>
Date: 星期日, 16 一月 2022 13:53:57 +0800
Subject: [PATCH] add status show function dialog

---
 MTerm2/HvSerialPort.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/MTerm2/HvSerialPort.cpp b/MTerm2/HvSerialPort.cpp
index ad08a00..49b4dbe 100644
--- a/MTerm2/HvSerialPort.cpp
+++ b/MTerm2/HvSerialPort.cpp
@@ -49,7 +49,7 @@
 		m_dwError = GetLastError();
 
 		m_strResult.Format(_T("COM%d OK."), this->m_nPort);
-		LastTime = GetTimeMs();
+		LastTime = GetTimemS();
 		TotalSendBytes = 0; TotalRecvBytes = 0;
 		LastSendBytes = 0; SendBytes = 0; RecvBytes = 0;
 		LastRecvBytes = 0; SendSpeed = 0; RecvSpeed = 0;
@@ -155,7 +155,7 @@
 
 int HvSerialPort::CalSpeed()
 {
-	double thistime = GetTimeMs();
+	double thistime = GetTimemS();
 	double diftime = thistime - LastTime;
 	if (diftime >= 500)
 	{
@@ -250,7 +250,7 @@
 	int nRunCount = 0;
 	//计算接收速度;
 
-	int LastSpeedTime = (int)GetTimeMs();
+	int LastSpeedTime = (int)GetTimemS();
 	int nThisRecv = 0;
 
 	COMSTAT cs;

--
Gitblit v1.9.1