diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2015-12-16 07:35:55 -0500 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2015-12-16 07:35:55 -0500 |
commit | 983602c87add7161cc82311e690e066f96493c31 (patch) | |
tree | 3c4f3bb9eb440e6d78360291138c68c7faa86388 /main.cpp | |
parent | bf82dd59140d32f4eb265ae69a44784b5fda116a (diff) | |
parent | 2286361ea87b42e73ec2f544265c5fd5e1b5713b (diff) |
Stuff
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
@@ -4,7 +4,6 @@ */ #include <cstdio> // fopen -#include <chrono> // see millis() #include <common.h> #include <world.h> @@ -188,25 +187,6 @@ std::string readFile(const char *filePath) { vec2 offset; /* OFFSET!!!!!!!!!!!!!!!!!!!! */ -/** - * millis - * - * We've encountered many problems when attempting to create delays for triggering - * the logic function. As a result, we decided on using the timing libraries given - * by <chrono> in the standard C++ library. This function simply returns the amount - * of milliseconds that have passed sine the epoch. - * -**/ - -#ifdef __WIN32__ -#define millis() SDL_GetTicks() -#else -unsigned int millis(void){ - std::chrono::system_clock::time_point now=std::chrono::system_clock::now(); - return std::chrono::duration_cast<std::chrono::milliseconds>(now.time_since_epoch()).count(); -} -#endif - extern WEATHER weather; extern bool fadeEnable; |