Functions | |
| string | Format (double time, bool minsAndSecs=true) | 
| Format time as MM:SS.   | |
| double | Get () | 
| Get time using the default mode.   | |
| double | Get (SgTimeMode mode) | 
| Get time using explicit mode.   | |
| SgTimeMode | DefaultMode () | 
| Return current default time mode.   | |
| void | SetDefaultMode (SgTimeMode mode) | 
| Set default time mode.   | |
| string | TodaysDate () | 
| std::string SgTime::Format | ( | double | time, | |
| bool |  minsAndSecs = true | |||
| ) | 
Format time as MM:SS.
Definition at line 52 of file SgTime.cpp.
Referenced by operator<<(), and SgUctSearch::PrintSearchProgress().
| double SgTime::Get | ( | ) | 
Get time using the default mode.
Definition at line 67 of file SgTime.cpp.
References g_defaultMode.
Referenced by SgGtpCommands::CmdCpuTime(), SgGtpCommands::CmdCpuTimeReset(), SgTimer::GetTime(), SgTimer::IsTimeOut(), SgTimeRecord::SetClock(), SgTimer::Start(), SgTimer::Stop(), SgTimeRecord::TurnClockOn(), and SgTimeRecord::UpdateTimeLeft().
| double SgTime::Get | ( | SgTimeMode | mode | ) | 
Get time using explicit mode.
Definition at line 72 of file SgTime.cpp.
References g_isInitialized, g_ticksPerSecond, Init(), SG_ASSERT, SG_TIME_CPU, and SG_TIME_REAL.
| SgTimeMode SgTime::DefaultMode | ( | ) | 
Return current default time mode.
Definition at line 105 of file SgTime.cpp.
References g_defaultMode.
Referenced by SgGtpCommands::CmdParam(), and SgUctSearch::StartSearch().
| void SgTime::SetDefaultMode | ( | SgTimeMode | mode | ) | 
Set default time mode.
Definition at line 110 of file SgTime.cpp.
References g_defaultMode.
Referenced by SgGtpCommands::CmdParam().
| std::string SgTime::TodaysDate | ( | ) | 
Definition at line 115 of file SgTime.cpp.