class TimeRecord

Declaration

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

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

Method Overview

Methods

TimeRecord()

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

static llvm::TimeRecord getCurrentTime(
    bool Start = true)

Description

Get the current time and memory usage. If Start is true we get the memory usage before the time, otherwise we get time before memory usage. This matters if the time to get the memory usage is significant and shouldn't be counted as part of a duration.

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

Parameters

bool Start = true

ssize_t getMemUsed() const

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

double getProcessTime() const

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

double getSystemTime() const

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

double getUserTime() const

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

double getWallTime() const

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

void print(const llvm::TimeRecord& Total,
           llvm::raw_ostream& OS) const

Description

Print the current time record to \p OS, with a breakdown showing contributions to the \p Total time record.

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

Parameters

const llvm::TimeRecord& Total
llvm::raw_ostream& OS