class TimeRegion

Declaration

class TimeRegion { /* full declaration omitted */ };

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.

Declared at: llvm/include/llvm/Support/Timer.h:140

Method Overview

Methods

TimeRegion(llvm::Timer& t)

Declared at: llvm/include/llvm/Support/Timer.h:145

Parameters

llvm::Timer& t

TimeRegion(llvm::Timer* t)

Declared at: llvm/include/llvm/Support/Timer.h:148

Parameters

llvm::Timer* t

~TimeRegion()

Declared at: llvm/include/llvm/Support/Timer.h:151