Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

Time Namespace Reference

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.

Function Documentation

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 (  ) 

Returns the time.

Definition at line 16 of file Time.cpp.

Referenced by DfsSolver::CheckAbort().


Variable Documentation

const double Time::ONE_DAY = 24*ONE_HOUR [static]

Seconds in one day.

Definition at line 25 of file Time.hpp.

Referenced by Formatted().

const double Time::ONE_HOUR = 60*ONE_MINUTE [static]

Seconds in one hour.

Definition at line 22 of file Time.hpp.

Referenced by Formatted().

const double Time::ONE_MINUTE = 60.0 [static]

Seconds in a one minute.

Definition at line 19 of file Time.hpp.

Referenced by Formatted().


6 Jan 2011 Doxygen 1.6.3