#ifndef DEBUGTIMER_H_INCLUDED #define DEBUGTIMER_H_INCLUDED #include #include class DebugTimer { public: void Start() { startTime = SDL_GetTicks(); } void End(const std::string & message) { unsigned int endTime = SDL_GetTicks(); std::cout << message << (endTime - startTime) << "ms" << std::endl; } protected: private: unsigned int startTime; }; #endif // DEBUGTIMER_H_INCLUDED