LLVM 19.0.0git
Public Member Functions | List of all members
llvm::TimeRegion Class Reference

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"

Inheritance diagram for llvm::TimeRegion:
Inheritance graph
[legend]

Public Member Functions

 TimeRegion (Timer &t)
 
 TimeRegion (Timer *t)
 
 ~TimeRegion ()
 

Detailed Description

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.

Definition at line 143 of file Timer.h.

Constructor & Destructor Documentation

◆ TimeRegion() [1/2]

llvm::TimeRegion::TimeRegion ( Timer t)
inlineexplicit

Definition at line 148 of file Timer.h.

◆ TimeRegion() [2/2]

llvm::TimeRegion::TimeRegion ( Timer t)
inlineexplicit

Definition at line 151 of file Timer.h.

◆ ~TimeRegion()

llvm::TimeRegion::~TimeRegion ( )
inline

Definition at line 154 of file Timer.h.


The documentation for this class was generated from the following file: