LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

llvm::TimeRegion Class Reference

#include <Timer.h>

Inheritance diagram for llvm::TimeRegion:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 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 it's argument. When it is destroyed, it stops the relevant timer. This makes it easy to time a region of code.

Definition at line 114 of file Timer.h.


Constructor & Destructor Documentation

llvm::TimeRegion::TimeRegion Timer t  )  [inline]
 

Definition at line 118 of file Timer.h.

References llvm::Timer::startTimer().

llvm::TimeRegion::~TimeRegion  )  [inline]
 

Definition at line 121 of file Timer.h.

References llvm::Timer::stopTimer().


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