Go to the documentation of this file.
39 "Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
40 "Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec",
48 return ::time(
reinterpret_cast<time_t*
>(0));
55 struct tm *curr = ::localtime(&t);
63 struct tm *curr = ::localtime(&t);
65 std::ostringstream os;
69 <<
'-' <<
std::setw(2) << curr->tm_mon + 1
83 struct tm *curr = ::localtime(&t);
85 std::ostringstream os;
89 <<
' ' <<
std::setw(4) << curr->tm_year + 1900;
98 struct tm *curr = ::localtime(&t);
100 std::ostringstream os;
125 return ::difftime(last_, start_);
131 const value_type prev(last_);
134 return ::difftime(last_, prev);
clock()
Construct null, storing the start time.
static const char * monthNames[]
static std::string dateTime()
Return the current wall-clock date/time as a string.
static time_t getTime()
Get the current clock time in seconds.
double clockTimeIncrement() const
Returns wall-clock time from last call of clockTimeIncrement()
static std::string date()
Return the current wall-clock date as a string.
Omanip< int > setw(const int i)
Omanip< char > setfill(char fillch)
static const struct tm rawDate()
Return the current wall-clock date as a raw struct.
static std::string clockTime()
Return the current wall-clock time as a string.
double elapsedClockTime() const
Returns wall-clock time from clock instantiation.