summaryrefslogtreecommitdiffstats
path: root/op.c
diff options
context:
space:
mode:
Diffstat (limited to 'op.c')
-rw-r--r--op.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/op.c b/op.c
index 766f8c0..bc28543 100644
--- a/op.c
+++ b/op.c
@@ -27,9 +27,7 @@
#include "fileIO.h"
#include "progAVR.h"
-
#if !defined _WIN32 && !defined __CYGWIN__
-DWORD GetTickCount();
#include <sys/select.h>
int kbhit()
{
@@ -888,9 +886,14 @@ void msDelay(double delay)
///
/// Get system time
DWORD GetTickCount(){
+ struct timeval tv;
+ gettimeofday(&tv, NULL);
+ return tv.tv_sec*1000+tv.tv_usec/1000;
+/*
struct timeb now;
ftime(&now);
return now.time*1000+now.millitm;
+*/
}
#endif