posix.cc (_Jv_platform_nanotime): Return nanoseconds, not microseconds; use gettimeofday when available.

* posix.cc (_Jv_platform_nanotime): Return nanoseconds, not
	microseconds; use gettimeofday when available.
	* posix-threads.cc (_Jv_CondWait): Improve accuracy and range of
	timeout calculation.
	* testsuite/libjava.lang/Thread_Sleep_2.java: New.
	* testsuite/libjava.lang/Thread_Sleep_2.out: New.
	* testsuite/libjava.lang/Thread_Sleep_2.xfail: New.

From-SVN: r116941
This commit is contained in:
Geoffrey Keating
2006-09-14 01:17:31 +00:00
committed by Geoffrey Keating
parent f5efb27f74
commit 06fcf75439
6 changed files with 81 additions and 16 deletions
@@ -0,0 +1 @@
ok