NptSystem.h

00001 /*****************************************************************
00002 |
00003 |   Neptune - System
00004 |
00005 |   (c) 2001-2006 Gilles Boccon-Gibod
00006 |   Author: Gilles Boccon-Gibod (bok@bok.net)
00007 |
00008  ****************************************************************/
00009 
00010 #ifndef _NPT_SYSTEM_H_
00011 #define _NPT_SYSTEM_H_
00012 
00013 /*----------------------------------------------------------------------
00014 |   includes
00015 +---------------------------------------------------------------------*/
00016 #include "NptTypes.h"
00017 #include "NptTime.h"
00018 
00019 /*----------------------------------------------------------------------
00020 |   NPT_System
00021 +---------------------------------------------------------------------*/
00022 class NPT_System
00023 {
00024 public:
00025     // methods
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     // constructor
00035     NPT_System() {}
00036 };
00037 
00038 #endif // _NPT_SYSTEM_H_