@@ -11,9 +11,7 @@
1111#include <unistd.h>
1212
1313#ifdef _WIN32
14−int win_fpoll(void* h);
15−FILE *win32_u8fopen(const char *path, const char *mode);
16−FILE *win32_u8popen(const char *path, const char *mode);
14+#include "windows/win_utils.h"
1715#else
1816#include <sys/select.h>
1917#endif
@@ -209,9 +207,11 @@ VAL idris_time() {
209207VAL idris_clock(VM* vm) {
210208 VAL result;
211209#ifdef _WIN32
210+ int64_t sec, nsec;
211+ win32_gettime(&sec, &nsec);
212212 idris_constructor(result, vm, 0, 2, 0);
213− idris_setConArg(result, 0, MKBIGI(0));
214− idris_setConArg(result, 1, MKBIGI(0));
213+ idris_setConArg(result, 0, MKBIGI(sec));
214+ idris_setConArg(result, 1, MKBIGI(nsec));
215215#else
216216 struct timespec ts;
217217 // We're not checking the result here, which is of course bad, but