Functions | |
double | Get () |
Returns the time. | |
std::string | Formatted (double elapsed) |
Formats elapsed time as a human readable string. | |
Variables | |
static const double | ONE_MINUTE = 60.0 |
Seconds in a one minute. | |
static const double | ONE_HOUR = 60*ONE_MINUTE |
Seconds in one hour. | |
static const double | ONE_DAY = 24*ONE_HOUR |
Seconds in one day. |
std::string Time::Formatted | ( | double | elapsed | ) |
Formats elapsed time as a human readable string.
Definition at line 23 of file Time.cpp.
References ONE_DAY, ONE_HOUR, and ONE_MINUTE.
Referenced by HexHtpEngine::CmdTimeLeft(), DfsSolver::DumpStats(), and MoHexPlayer::Search().
double Time::Get | ( | ) |
const double Time::ONE_DAY = 24*ONE_HOUR [static] |
const double Time::ONE_HOUR = 60*ONE_MINUTE [static] |
const double Time::ONE_MINUTE = 60.0 [static] |