LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
llvm::TimeRegion Class Reference

#include <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 127 of file Timer.h.

Constructor & Destructor Documentation

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

Definition at line 131 of file Timer.h.

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

Definition at line 134 of file Timer.h.

llvm::TimeRegion::~TimeRegion ( )
inline

Definition at line 137 of file Timer.h.


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