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:
parent
cbbb5b6da1
commit
e59a1e40f3
14 changed files with 167 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
// posix.h -- Helper functions for POSIX-flavored OSs.
|
||||
|
||||
/* Copyright (C) 2000, 2002, 2003 Free Software Foundation
|
||||
/* Copyright (C) 2000, 2002, 2003, 2006 Free Software Foundation
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
|
@ -79,6 +79,7 @@ details. */
|
|||
|
||||
extern int _Jv_select (int n, fd_set *, fd_set *, fd_set *, struct timeval *);
|
||||
extern jlong _Jv_platform_gettimeofday ();
|
||||
extern jlong _Jv_platform_nanotime ();
|
||||
extern void _Jv_platform_initialize (void);
|
||||
extern void _Jv_platform_initProperties (java::util::Properties*);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue