From ed44a375b27dd469422f372c527b6de8f5fa2e04 Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Thu, 19 Sep 2024 10:18:37 +0800 Subject: [PATCH] update --- README.md | 2 ++ src/main.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3830b6f..ca94a94 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,8 @@ xmake project -k vsxmake > 什么环境下性能最好? > 经过测试,在windows环境下,前端使用mingw,后端使用llvm,也就是clang的时候性能最好 +> +> 可以酌情开启xmake.lua中的avx512加速 > perf diff --git a/src/main.cpp b/src/main.cpp index d04dd79..d3c380c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -55,7 +55,7 @@ public: ~Spent()noexcept{ const auto end = std::chrono::system_clock::now(); const auto dur = std::chrono::duration_cast (end-start); - zt::print("[Timer: ",name,"]"," Stop timing , using ", dur,"\n"); + zt::print("[Timer: ",name,"]"," Stop timing , using ", dur.count(),"ms\n"); } };