Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  
Namespaces | Enumerations | Functions

SgTime.h File Reference

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.

Detailed Description

Time measurement.

Definition in file SgTime.h.


Enumeration Type Documentation

enum SgTimeMode

Time measurement mode used in SgTime.

Enumerator:
SG_TIME_CPU 

Measure CPU-time.

Returns the CPU time of the current thread including child processes.

SG_TIME_REAL 

Measure real time.

Definition at line 14 of file SgTime.h.


Sun Mar 13 2011 Doxygen 1.7.1