namespace cutl { /** * @brief A simple time counter class to measure the execution time of a function. * */ classtimecount { public: /** * @brief Construct a new timecount object * The constructor will record the begin time of the function calling. * @param func_name */ timecount(const std::string &func_name); /** * @brief Destroy the timecount object * The desctructor will record the end time of the function calling and calculate the execution time. */ ~timecount();
=============================================timecount============================================== TestTimecount begin TestTimecount end [2024-05-19 22:34:35.853][I]]0x7ff844a9b100](cutl) [timecount] TestTimecount used 01s.004955us