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
This commit is contained in:
parent
3df3221216
commit
8eeda6e0e7
6 changed files with 39 additions and 20 deletions
|
@ -158,9 +158,7 @@ java::lang::System::arraycopy (jobject src, jint src_offset,
|
|||
jlong
|
||||
java::lang::System::currentTimeMillis (void)
|
||||
{
|
||||
struct timeval tv;
|
||||
_Jv_platform_gettimeofday (&tv);
|
||||
return (jlong) tv.tv_sec * 1000 + tv.tv_usec / 1000;
|
||||
return _Jv_platform_gettimeofday ();
|
||||
}
|
||||
|
||||
jint
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue