sgdk: timer.h Source File

sgdk

- Main Page
- Related Pages
- Classes
- Files

- File List
- File Members

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
    00048 u32  getSubTick();
    00055 u32  getTick();
    00056
    00066 u32  getTime(u16 fromTick);
    00077 fix32 getTimeAsFix32(u16 fromTick);
    00078
    00086 void startTimer(u16 numTimer);
    00098 u32  getTimer(u16 numTimer, u16 restart);
    00099
    00109 void waitSubTick(u32 subtick);
    00119 void waitTick(u32 tick);
    00129 void waitMs(u32 ms);
    00130
    00131
    00132 #endif // _TIMER_H_

All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines