diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-12-16 07:27:06 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-12-16 07:27:06 -0500 |
commit | a83d037394f37403918b62fdc0083d4b84ea02db (patch) | |
tree | 4fd40f383a600d94552e2e7122fe243363831016 /include/common.h | |
parent | 7b1908e2bc2531de0b7e5ec81ab09b50ae14263f (diff) |
music/merge
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index 31126d7..08ec73f 100644 --- a/include/common.h +++ b/include/common.h @@ -160,4 +160,17 @@ void safeSetColor(int r,int g,int b); void safeSetColorA(int r,int g,int b,int a); +/** + * 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); +#endif // __WIN32__ + #endif // COMMON_H |