aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-12-16 07:27:06 -0500
committerClyne Sullivan <tullivan99@gmail.com>2015-12-16 07:27:06 -0500
commita83d037394f37403918b62fdc0083d4b84ea02db (patch)
tree4fd40f383a600d94552e2e7122fe243363831016 /main.cpp
parent7b1908e2bc2531de0b7e5ec81ab09b50ae14263f (diff)
music/merge
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/main.cpp b/main.cpp
index 5b9b1b6..a9cc2fa 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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;