00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef FLTIMER_H
00011 #define FLTIMER_H
00012
00013 #include "flGlobal.h"
00014
00015 #if FL_TIMER != 0
00016
00017 #ifdef __cplusplus
00018 extern "C" {
00019 #endif
00020
00021 typedef struct {
00022 u64 timerTimeNow;
00023 u64 timerTimeLast;
00024 u32 timerTickResolution;
00025 } Timer;
00026
00027 extern Timer* timerCreate();
00028 extern double timerGetDeltaTime(Timer* inTimer);
00029 extern void timerFree(Timer* inTimer);
00030 extern void timerPauseAll();
00031
00032 #ifdef __cplusplus
00033 }
00034 #endif
00035
00036 #endif
00037
00038 #define timerWait(inTime) sceKernelDelayThread(inTime * 1000000)
00039
00040 #endif