14 #include "llvm/Config/config.h"
42 #pragma warning(disable:4722)
49 self_process::~self_process() {
83 #define COLOR(FGBG, CODE, BOLD) "\033[0;" BOLD FGBG CODE "m"
85 #define ALLCOLORS(FGBG,BOLD) {\
86 COLOR(FGBG, "0", BOLD),\
87 COLOR(FGBG, "1", BOLD),\
88 COLOR(FGBG, "2", BOLD),\
89 COLOR(FGBG, "3", BOLD),\
90 COLOR(FGBG, "4", BOLD),\
91 COLOR(FGBG, "5", BOLD),\
92 COLOR(FGBG, "6", BOLD),\
93 COLOR(FGBG, "7", BOLD)\
static TimeValue now()
Creates a TimeValue with the current time (UTC).
static TimeValue getElapsedWallTime()
A helper function to compute the elapsed wall-time since the program started.
#define llvm_unreachable(msg)
static const char colorcodes[2][2][8][10]
virtual ~process()
Only specific subclasses of process objects can be destroyed.
static volatile TimeValue DummyTimeValue
A special global variable to ensure we call getElapsedWallTime during global initialization of the pr...
static self_process * get_self()
Get the process object for the current process.
The specific class representing the current process.
virtual TimeValue get_wall_time() const
Get the wall time consumed by this process.
#define ALLCOLORS(FGBG, BOLD)
Provides an abstraction for a fixed point in time.