00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef _NPT_SYSTEM_H_
00011 #define _NPT_SYSTEM_H_
00012
00013
00014
00015
00016 #include "NptTypes.h"
00017 #include "NptTime.h"
00018
00019
00020
00021
00022 class NPT_System
00023 {
00024 public:
00025
00026 static NPT_Result GetProcessId(NPT_Integer& id);
00027 static NPT_Result GetCurrentTimeStamp(NPT_TimeStamp& now);
00028 static NPT_Result Sleep(const NPT_TimeInterval& duration);
00029 static NPT_Result SleepUntil(const NPT_TimeStamp& when);
00030 static NPT_Result SetRandomSeed(unsigned int seed);
00031 static NPT_Integer GetRandomInteger();
00032
00033 protected:
00034
00035 NPT_System() {}
00036 };
00037
00038 #endif // _NPT_SYSTEM_H_