Robot Simulator of the Robotics Group for Self-Organization of Control  0.8.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
quickprof.h File Reference
#include <iostream>
#include <fstream>
#include <sstream>
#include <map>
#include <cmath>
#include <sys/time.h>
Include dependency graph for quickprof.h:

Go to the source code of this file.

Classes

struct  ProfileBlock
 A simple data structure representing a single timed block of code. More...
 
class  Clock
 A cross-platform clock class inspired by the Timer classes in Ogre (http://www.ogre3d.org). More...
 
class  Profiler
 A singleton class that manages timing for a set of profiling blocks. More...
 

Namespaces

 quickprof
 The main namespace that contains everything.
 

Macros

#define PROFILER   quickprof::Profiler::instance()
 Use this macro to access the profiler singleton. More...
 

Enumerations

enum  TimeFormat { SECONDS, MILLISECONDS, MICROSECONDS, PERCENT }
 A set of ways to represent timing results. More...
 

Macro Definition Documentation

#define PROFILER   quickprof::Profiler::instance()

Use this macro to access the profiler singleton.

For example: PROFILER.init(); ... PROFILER.beginBlock("foo"); foo(); PROFILER.endBlock("foo");