Classes | Namespaces | Defines
Profiler.h File Reference
#include <map>
#include <vector>
#include <string>
#include "Timestamp.h"
Include dependency graph for Profiler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  DUtils::Profiler

Namespaces

namespace  DUtils

Defines

#define PROFILE(cmd)   PROFILE_S(cmd, "")
#define PROFILE_S(cmd, s)

Define Documentation

#define PROFILE (   cmd)    PROFILE_S(cmd, "")

Definition at line 46 of file Profiler.h.

#define PROFILE_S (   cmd,
  s 
)
Value:
{ DUtils::Timestamp t_begin, t_end; \
    t_begin.setToCurrentTime(); \
    cmd; \
    t_end.setToCurrentTime(); \
    std::cout << s << " - elapsed time: " \
      << DUtils::Timestamp::Format(t_end - t_begin) \
      << std::endl; \
  }

Definition at line 36 of file Profiler.h.



re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:33:47