摘要: ```c++ //copy from spdlog #pragma once #include #include class stopwatch { using clock = std::chrono::steady_clock; std::chrono::time_point start_tp_; 阅读全文
posted @ 2023-07-02 21:52 算你牛 阅读(49) 评论(0) 推荐(0)
摘要: ```c++ #pragma once #include //std::cout #include //abort struct Assert { Assert& ASSERT_A; Assert& ASSERT_B; explicit Assert(const char* exp) : ASSER 阅读全文
posted @ 2023-07-02 21:49 算你牛 阅读(27) 评论(0) 推荐(0)
摘要: ```c++ #pragma once /************************************************************************************* 描 述:RAII技法的工具类 使 用 说 明: //资 源 释 放 void foo( 阅读全文
posted @ 2023-07-02 21:48 算你牛 阅读(10) 评论(0) 推荐(0)