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 }
1.4.7