Lines Matching defs:Timer
1 //===-- llvm/Support/Timer.h - Interval Timing Support ----------*- C++ -*-===//
23 class Timer;
72 /// Timer - This class is used to track the amount of time spent between
75 /// By default, the Timer will print the amount of time it has captured to
80 class Timer {
84 TimerGroup *TG; // The TimerGroup this Timer is in.
86 Timer **Prev, *Next; // Doubly linked list of timers in the group.
88 explicit Timer(StringRef N) : TG(0) { init(N); }
89 Timer(StringRef N, TimerGroup &tg) : TG(0) { init(N, tg); }
90 Timer(const Timer &RHS) : TG(0) {
93 const Timer &operator=(const Timer &T) {
97 ~Timer();
100 explicit Timer() : TG(0) {}
108 /// startTimer/stopTimer is counted by the Timer class. Note that these calls
123 /// stopTimer() methods of the Timer class. When the object is constructed, it
128 Timer *T;
131 explicit TimeRegion(Timer &t) : T(&t) {
134 explicit TimeRegion(Timer *t) : T(t) {
144 /// Timer. It allows you to declare a new timer, AND specify the region to
163 Timer *FirstTimer; // First timer in the group.
182 friend class Timer;
183 void addTimer(Timer &T);
184 void removeTimer(Timer &T);