diff options
author | Adam Megacz <adam@xwt.org> | 2002-03-08 01:03:56 +0000 |
---|---|---|
committer | Adam Megacz <megacz@gcc.gnu.org> | 2002-03-08 01:03:56 +0000 |
commit | 8eeda6e0e760b631414f9272beedfb6c007c5ad4 (patch) | |
tree | 5a6ecf62aa2257aff8b6a4fbbe492852b116c5d2 /libjava/win32.cc | |
parent | 3df3221216dd59d5d81a9791b9f90f3a43d4744d (diff) | |
download | gcc-8eeda6e0e760b631414f9272beedfb6c007c5ad4.zip gcc-8eeda6e0e760b631414f9272beedfb6c007c5ad4.tar.gz gcc-8eeda6e0e760b631414f9272beedfb6c007c5ad4.tar.bz2 |
win32.cc (_Jv_platform_gettimeofday): Now takes no args, returns jlong.
2002-03-07 Adam Megacz <adam@xwt.org>
* win32.cc (_Jv_platform_gettimeofday): Now takes no args,
returns jlong. Added implementation
* posix.cc (_Jv_platform_gettimeofday): Now takes no args,
returns jlong.
* win32.h (_Jv_platform_gettimeofday): Now takes no args,
returns jlong.
* posix.h (_Jv_platform_gettimeofday): Now takes no args,
returns jlong.
* java/lang/natSystem.cc (currentTimeMillis): Now uses updated
_Jv_platform_gettimeofday signature.
From-SVN: r50416
Diffstat (limited to 'libjava/win32.cc')
-rw-r--r-- | libjava/win32.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libjava/win32.cc b/libjava/win32.cc index f425462..a019cb7 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; } |