00001 00059 /* 00060 * measure.h 00061 * 00062 * Created on: Nov 21, 2011 00063 * Author: goa-jh 00064 */ 00065 00066 #ifndef MEASURE_H_ 00067 #define MEASURE_H_ 00068 00069 #include "time.h" 00070 #include "memory.h" 00071 00072 /* 00073 * EXAMPLE 00074 * 00075 00076 #include <registration/measurements/measure.h> 00077 00078 measurement_tools::MemoryUsage mu; 00079 measurement_tools::PrecisionStopWatch psw; 00080 while(ros::ok()) { 00081 new int[1024]; 00082 ROS_ERROR("memory %d", mu.getKB()); 00083 ROS_ERROR("time %f", psw.precisionStop()); 00084 sleep(1); 00085 } 00086 00087 */ 00088 00089 #endif /* MEASURE_H_ */