HydroSDL/timing/timing.cpp

Go to the documentation of this file.
00001 
00009 #include "SDL.h"
00010 #include "timing.h"
00011 
00012 
00013 Uint32 offset;
00014 
00015 void tic()
00016 {
00017         offset = SDL_GetTicks();
00018 }
00019 
00020 float toc()
00021 {
00022         return (float(SDL_GetTicks()-offset)/1000.0f);
00023 }

Generated on Wed Sep 20 14:30:04 2006 for hydroSDL by  doxygen 1.4.7