flTimer.h

Go to the documentation of this file.
00001 // Funclib Timer v1.0.0 (CORE)
00002 // 
00003 // This module contains functions for timing
00004 // It is a simple interface for the psp's realtime-clock
00005 // 
00006 // Contributor(s): Flatmush (Based off the timer class in the PSP NeHe tutorial ports)
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

Generated on Wed Sep 5 19:04:01 2007 for funcLib by  doxygen 1.5.1