Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members
E:/Programming/MyProject/K_Game_hg/GameEngine/include/platform/Timer.h
Go to the documentation of this file.
00001 // Copyright 2006-2011 by Kat'Oun
00002 
00003 #ifndef _TIMER_H_
00004 #define _TIMER_H_
00005 
00006 #include <EngineConfig.h>
00007 #include <core/Types.h>
00008 
00009 namespace platform
00010 {
00011 
00013 class ENGINE_PUBLIC_EXPORT Timer
00014 {
00015 public:
00016 
00017         // destructor
00018         virtual ~Timer();
00019 
00020         virtual u32 getYear();
00021 
00022         virtual u32 getMonth();         // month of year (1 = Jan)
00023 
00024         virtual u32 getDay();           // day of month
00025 
00026         virtual u32 getDayOfWeek();     // 1=Sun, 2=Mon, ..., 7=Sat
00027 
00028         virtual u32 getDayOfYear();
00029 
00030         virtual u32 getHour();
00031 
00032         virtual u32 getMinute();
00033 
00034         virtual u32 getSecond();
00035 
00036         virtual u32 getMilliseconds();  // returns current time in milliseconds.
00037 
00038         // if a high resolution timer is not available, the
00039         // return value will always be 0
00040         virtual u32 getMicroseconds();  // returns the time in microseconds
00041 };
00042 
00043 } // end namespace platform
00044 
00045 #endif

The KG Game Engine
The KG Game Engine Documentation © 2006-2011 by Kat'Oun. Generated on Sat Jul 2 2011 00:50:04 by Doxygen (1.7.4)