Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

system.h

Go to the documentation of this file.
00001 
00003 
00004 #ifndef header_system
00005 #define header_system
00006 
00007 class CL_EventListener;
00008 
00009 class CL_System
00010 //: Generic functions that didn't fit in other places.
00011 {
00012 public:
00013         static void keep_alive();
00014         // Checks for system events, updates input and other stuff.
00015 
00016         static void keep_alive(int millis);
00017         // Checks for system events (pump the CL_KeepAlive objects).
00018         // Return when 'millis' has elapsed.
00019 
00020         static bool keep_alive(CL_EventListener &events, int timeout = -1);
00021         // Checks for system events (pump the CL_KeepAlive objects).
00022         // Return when one of the events trigger, or when timeout has elapsed.
00023 
00024         static void sleep(int millis);
00025         // Sleep for 'millis' milliseconds.
00026 
00027         static unsigned int get_time();
00028         // Get the current time (since system boot), in milliseconds.
00029 
00030         static void suspend_time();
00031         // Suspend the time. get_time() will continue to return the same value
00032         // until resume_time() is called.
00033 
00034         static void resume_time();
00035         // Resumes the time. get_time() will return the current time again.
00036         
00037         static bool detect_mmx();
00038         // Returns true if MMX technology is available on this CPU.
00039         
00040         static bool detect_3dnow();
00041         // Returns true if 3DNow! technology is available on this CPU.
00042 };
00043 
00044 #endif

Generated at Wed Apr 4 19:54:04 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001