win32.cc (_Jv_platform_nanotime): New function.
* win32.cc (_Jv_platform_nanotime): New function. * include/win32.h (_Jv_platform_nanotime): Declare. * posix.cc (_Jv_platform_nanotime): New function. * include/posix.h (_Jv_platform_nanotime): Declare. * java/lang/natSystem.cc (nanoTime): New method. * java/lang/System.java (nanoTime): Declare. * include/config.h.in, configure: Rebuilt. * configure.ac: Check for clock_gettime. From-SVN: r111869
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// natSystem.cc - Native code implementing System class.
|
||||
|
||||
/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation
|
||||
/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2006 Free Software Foundation
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
@@ -124,6 +124,12 @@ java::lang::System::currentTimeMillis (void)
|
||||
return _Jv_platform_gettimeofday ();
|
||||
}
|
||||
|
||||
jlong
|
||||
java::lang::System::nanoTime ()
|
||||
{
|
||||
return _Jv_platform_nanotime ();
|
||||
}
|
||||
|
||||
jint
|
||||
java::lang::System::identityHashCode (jobject obj)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user