Restored performance counter functionality, ROS package used own source file for function definitions but per_counter.h stays the same
Use namespace std so that we can use the isfinite function, which should be available from math.h but the compiler gives an error that the function is undeclared