profiling.h
Go to the documentation of this file.
00001 
00008 #ifndef UCL_PROFILING_H
00009 #define UCL_PROFILING_H
00010 
00011 #ifdef USE_PROFILING
00012 
00014 #define TIC(name) double profiling_##name = ros::Time::now().toSec();
00015 
00017 #define TOC(name, msg)                                                                             \
00018   std::cout << "\033[1;36m[TIC TOC]: " << msg << ": "                                              \
00019             << ros::Time::now().toSec() - profiling_##name << "\033[0m\n";
00020 
00021 #else
00022 
00023 #define TIC(name)       //!< begin counter
00024 #define TOC(name, msg)  //!< end counter and display message in the standard output
00025 
00026 #endif /* USE_PROFILING */
00027 
00028 #endif /* UCL_PROFILING_H */


ucl_drone
Author(s): dronesinma
autogenerated on Sat Jun 8 2019 20:51:53