From 5e6c63c80e146e9f0800afc39ec33f0c7eb7a572 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期一, 21 七月 2025 14:09:58 +0800
Subject: [PATCH] 1.回撤任务修改为重发任务;
---
SourceCode/Bond/Servo/ToolUnits.cpp | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/SourceCode/Bond/Servo/ToolUnits.cpp b/SourceCode/Bond/Servo/ToolUnits.cpp
index 2964355..15cb278 100644
--- a/SourceCode/Bond/Servo/ToolUnits.cpp
+++ b/SourceCode/Bond/Servo/ToolUnits.cpp
@@ -74,11 +74,19 @@
ULONGLONG CToolUnits::getTimestamp()
{
+ // 返回毫秒数的版本
auto now = std::chrono::system_clock::now();
auto ms = std::chrono::time_point_cast<std::chrono::milliseconds>(now);
return static_cast<ULONGLONG>(ms.time_since_epoch().count());
}
+time_t CToolUnits::getUnixTimestamp()
+{
+ // 返回秒数的版本
+ auto now = std::chrono::system_clock::now();
+ return std::chrono::system_clock::to_time_t(now);
+}
+
void CToolUnits::createDir(const char* pszDir)
{
if (isDirectory(std::string(pszDir))) {
--
Gitblit v1.9.3