LRT13  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
Profiler.h
1 #ifndef PROFILER_H_
2 #define PROFILER_H_
3 
4 #include <map>
5 #include <stack>
6 #include <string>
7 #include <Timer.h>
8 
9 using namespace std;
10 
15 class Profiler
16 {
17 public:
21  static void BeginActivity(string name);
22 
27  static double End(string name);
28 
32  static double GetLastTime(string name);
33 
34  static map<string, double>* GetLastTimes();
35 
36 private:
37  static map<string, double> m_activities;
38  static map<string, double> m_lastTimes;
39  static map<string, pair<double, int> > m_averageTime;
40 };
41 
42 #endif