Time measurement. More...
#include <string>
Go to the source code of this file.
Namespaces | |
namespace | SgTime |
Get current time, and formatting functions. | |
Enumerations | |
enum | SgTimeMode { SG_TIME_CPU, SG_TIME_REAL } |
Time measurement mode used in SgTime. More... | |
Functions | |
std::string | SgTime::Format (double time, bool minsAndSecs=true) |
Format time as MM:SS. | |
double | SgTime::Get () |
Get time using the default mode. | |
double | SgTime::Get (SgTimeMode mode) |
Get time using explicit mode. | |
SgTimeMode | SgTime::DefaultMode () |
Return current default time mode. | |
void | SgTime::SetDefaultMode (SgTimeMode mode) |
Set default time mode. | |
std::string | SgTime::TodaysDate () |
Get today's date in a format compatible with the DT property of the SGF standard. |
Time measurement.
Definition in file SgTime.h.
enum SgTimeMode |