diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-01-17 18:54:26 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-01-17 18:54:26 +0000 |
commit | 43a87590f45aa6e55724d30d0c2d0d34b407a57e (patch) | |
tree | 21ce8e8886f8aa58b159419b7d885f57d9a37580 /debugTimer.h | |
parent | Initial commit (diff) | |
download | ilt-43a87590f45aa6e55724d30d0c2d0d34b407a57e.tar.bz2 ilt-43a87590f45aa6e55724d30d0c2d0d34b407a57e.tar.xz ilt-43a87590f45aa6e55724d30d0c2d0d34b407a57e.zip |
First cut modernizing and sanitizing
Diffstat (limited to 'debugTimer.h')
-rw-r--r-- | debugTimer.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/debugTimer.h b/debugTimer.h deleted file mode 100644 index fb95eec..0000000 --- a/debugTimer.h +++ /dev/null @@ -1,27 +0,0 @@ -#ifndef DEBUGTIMER_H_INCLUDED -#define DEBUGTIMER_H_INCLUDED - -#include <SDL2/SDL.h> -#include <iostream> - -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 |