34 template <
typename Func>
50 static constexpr std::array<const char*, 4>
LOG_LEVEL_COLOR = {
"\033[31m",
"\033[32m",
"\033[33m",
"\033[0m\n"};
This file contains the Clock class.
float getDeltaTimeMS() const
static void logWarning(const std::string &message)
static constexpr std::array< const char *, 2 > LOG_LEVEL_STRING
static std::string formatLogMessage(LogLevel level, const std::string &message)
static constexpr std::array< const char *, 4 > LOG_LEVEL_COLOR
static const char * getColorForDuration(const float duration)
static Logger & getInstance()
static void logExecutionTime(const std::string &message, Func &&func)