This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: FYI: System.nanoTime
>>>>> "Cédric" == Cédric Berger <cedric@berger.to> writes:
Cédric> Actually, thinking about it, the only problem could arise if one
Cédric> platform for example defines CLOCK_MONOTONIC but does not implements
Cédric> it in the clock_gettime() call (and returns -1)
Cédric> If such a platform exists, then I guess a run-time fallback mechanism
Cédric> would need to be added.
The way the code is written, if clock_gettime fails, we fall back to
multiplying _Jv_platform_gettimeofday by 1000. So, we're covered :-)
Tom