KiTrackMarlin  1.9.0
Timer.h
1 #ifndef dataharvester_Timer_H_
2 #define dataharvester_Timer_H_
3 
4 namespace KiTrackMarlin {
5 class Timer {
6 public:
13  static void start_counter();
14 
16  static double cpuMHz();
17  static double lap(); //< lapsed time, in seconds.
18  static double ticks(); //< lapsed time, in clock ticks.
19 };
20 }
21 
22 #endif // dataharvester_Timer_H_
static void start_counter()
A fast, precise timer Works on linux only.
Definition: Timer.cc:86
Definition: Timer.h:5
static double cpuMHz()
Return what the harvester thinks is the CPU frequency.
Definition: Timer.cc:46