sgdk
timer.h
Go to the documentation of this file.
00001 
00011 #ifndef _TIMER_H_
00012 #define _TIMER_H_
00013 
00014 
00019 #define SUBTICKPERSECOND    76800
00020 
00024 #define TICKPERSECOND       300
00025 
00029 #define TIMEPERSECOND       256
00030 
00035 #define MAXTIMER            16
00036 
00037 extern vu32 vtimer;
00038 
00039 
00047 u32  getSubTick();
00054 u32  getTick();
00055 
00065 u32  getTime(u16 fromTick);
00076 fix32 getTimeAsFix32(u16 fromTick);
00077 
00085 void startTimer(u16 numTimer);
00097 u32  getTimer(u16 numTimer, u16 restart);
00098 
00108 void waitSubTick(u32 subtick);
00118 void waitTick(u32 tick);
00128 void waitMs(u32 ms);
00129 
00130 
00131 #endif // _TIMER_H_
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines