LLVM 20.0.0git
|
The TimeRegion class is used as a helper class to call the startTimer() and stopTimer() methods of the Timer class. More...
#include "llvm/Support/Timer.h"
Public Member Functions | |
TimeRegion (Timer &t) | |
TimeRegion (Timer *t) | |
~TimeRegion () | |
The TimeRegion class is used as a helper class to call the startTimer() and stopTimer() methods of the Timer class.
When the object is constructed, it starts the timer specified as its argument. When it is destroyed, it stops the relevant timer. This makes it easy to time a region of code.