diff options
-rwxr-xr-x | signal/rtin~.c | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/signal/rtin~.c b/signal/rtin~.c index d086003..5338137 100755 --- a/signal/rtin~.c +++ b/signal/rtin~.c @@ -1,15 +1,20 @@ /* (C) Guenter Geiger <geiger@epy.co.at> */
-
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <fcntl.h>
- #include <sys/time.h>
- #include <unistd.h>
-
-// int gettimeofday(struct timeval *tv, struct timezone *tz);
-
-
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <sys/time.h>
+#include <unistd.h>
+
+#ifdef NT
+#include <sys/timeb.h>
+void gettimeofday(struct timeval* t,void* timezone)
+{ struct timeb timebuffer;
+ ftime( &timebuffer );
+ t->tv_sec=timebuffer.time;
+ t->tv_usec=1000*timebuffer.millitm;
+}
+#endif
#include "math.h"
#include <m_pd.h>
|