This commit is contained in:
Zengtudor 2024-09-19 13:43:25 +08:00
parent 3d63bc4667
commit a187d0a0e0

View File

@ -49,7 +49,7 @@ private:
const decltype(std::chrono::system_clock::now()) start; const decltype(std::chrono::system_clock::now()) start;
const std::string_view name; const std::string_view name;
public: public:
Spent(std::string_view name)noexcept:start(std::chrono::system_clock::now()),name(name){ Spent(const std::string_view name)noexcept:start(std::chrono::system_clock::now()),name(name){
zt::print("[Timer: ",name,"]"," Start timing","\n"); zt::print("[Timer: ",name,"]"," Start timing","\n");
} }
~Spent()noexcept{ ~Spent()noexcept{