version 1.4, 2001/04/25 22:20:56
|
version 1.6, 2001/06/11 23:11:26
|
|
|
#define Pegasus_System_h | #define Pegasus_System_h |
| |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
|
#include <Pegasus/Common/String.h> |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
|
class PEGASUS_COMMON_LINKAGE System | class PEGASUS_COMMON_LINKAGE System |
{ | { |
public: | public: |
|
/** getCurrentTime - Gets the current time as seconds and milliseconds |
|
into the provided variables using system functions. |
|
@param seconds Return for the seconds component of the time. |
|
@param milliseconds Return for the milliseconds component of the time. |
|
@return The value is returned in the parameters. |
|
The time returned is as defined in number of seconds and milliseconds |
|
since 00:00 Coordinated Universal Time (UTC), January 1, 1970, |
| |
|
*/ |
static void getCurrentTime(Uint32& seconds, Uint32& milliseconds); | static void getCurrentTime(Uint32& seconds, Uint32& milliseconds); |
| |
|
/** getCurrentASCIITime Gets time/date in a fixed format. The format is |
|
YY MM DD-HH:MM:SS |
|
@return Returns String with the ASCII time date. |
|
*/ |
|
static String getCurrentASCIITime(); |
|
|
static void sleep(Uint32 seconds); | static void sleep(Uint32 seconds); |
| |
static Boolean exists(const char* path); | static Boolean exists(const char* path); |