CMS 3D CMS Logo

sonic_utils.cc
Go to the documentation of this file.
3 
4 #include <string_view>
5 #include <chrono>
6 
7 namespace sonic_utils {
8  void printDebugTime(std::string_view debugName, std::string_view msg, const TimePoint& t0) {
10  if (debugName.empty())
11  return;
12  edm::LogInfo(debugName) << msg << std::chrono::duration_cast<std::chrono::microseconds>(t1 - t0).count();
13  }
14 } // namespace sonic_utils
Log< level::Info, false > LogInfo
tuple msg
Definition: mps_check.py:285
std::chrono::time_point< std::chrono::high_resolution_clock > TimePoint
Definition: sonic_utils.h:8
void printDebugTime(std::string_view debugName, std::string_view msg, const TimePoint &t0)
Definition: sonic_utils.cc:8