Definition in file SgTime.cpp.
#include "SgSystem.h"
#include "SgTime.h"
#include <cstring>
#include <ctime>
#include <iomanip>
#include <limits>
#include <iostream>
#include <sstream>
#include <errno.h>
#include <sys/time.h>
#include <sys/times.h>
#include <unistd.h>
#include "SgException.h"
Go to the source code of this file.
Functions | |
void | Init () |
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. | |
string | SgTime::TodaysDate () |
Variables | |
SgTimeMode | g_defaultMode = SG_TIME_REAL |
bool | g_isInitialized = false |
clock_t | g_ticksPerSecond |
clock_t | g_ticksPerMinute |
void @10::Init | ( | ) | [static] |
SgTimeMode g_defaultMode = SG_TIME_REAL [static] |
Definition at line 28 of file SgTime.cpp.
Referenced by SgTime::DefaultMode(), SgTime::Get(), and SgTime::SetDefaultMode().
bool g_isInitialized = false [static] |
clock_t g_ticksPerMinute [static] |
Definition at line 34 of file SgTime.cpp.
clock_t g_ticksPerSecond [static] |