A snapshot of wall, user, and system time plus memory and instruction counts.

Synopsis

Declared in <llvm/Support/Timer.h>

class TimeRecord;

Member Functions

Name

Description

TimeRecord [constructor]

Construct a zero‐initialized time record.

getInstructionsExecuted

Return the number of instructions executed.

getMemUsed

Return memory allocated in bytes.

getProcessTime

Return user plus system time in seconds.

getSystemTime

Return system‐mode CPU time in seconds.

getUserTime

Return user‐mode CPU time in seconds.

getWallTime

Return wall‐clock time in seconds.

operator+=

Add the times and resource counts from RHS into this record.

operator‐

Return a time record equal to this record minus RHS.

operator‐=

Subtract the times and resource counts in RHS from this record.

print

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

operator<

Return true if this record's wall time is less than T's.

Static Member Functions

Name

Description

getCurrentTime

Get the current time and memory usage.

Created with MrDocs