aboutsummaryrefslogtreecommitdiffstats
path: root/src/common.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 /src/common.cpp
parent7b1908e2bc2531de0b7e5ec81ab09b50ae14263f (diff)
music/merge
Diffstat (limited to 'src/common.cpp')
-rw-r--r--src/common.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/common.cpp b/src/common.cpp
index a8a964e..7449a35 100644
--- a/src/common.cpp
+++ b/src/common.cpp
@@ -1,7 +1,15 @@
#include <common.h>
#include <cstdio>
+#include <chrono>
-#define DEBUG
+#ifndef __WIN32__
+
+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 // __WIN32__
void DEBUG_prints(const char* file, int line, const char *s,...){
va_list args;