summaryrefslogtreecommitdiffstats
path: root/libjava/win32.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/win32.cc')
-rw-r--r--libjava/win32.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/libjava/win32.cc b/libjava/win32.cc
index f425462523d..a019cb75806 100644
--- a/libjava/win32.cc
+++ b/libjava/win32.cc
@@ -10,6 +10,7 @@ details. */
#include <config.h>
#include <jvm.h>
+#include <sys/timeb.h>
#include "platform.h"
#include <java/lang/ArithmeticException.h>
@@ -39,10 +40,11 @@ _Jv_platform_initialize (void)
}
// gettimeofday implementation.
-void
-_Jv_platform_gettimeofday (struct timeval *tv)
+jlong
+_Jv_platform_gettimeofday ()
{
- // FIXME
- return;
+ struct timeb t;
+ ftime (&t);
+ return t.time * 1000 + t.millitm;
}
OpenPOWER on IntegriCloud