This is the mail archive of the
mailing list for the Java project.
Re: Patch: FYI: System.nanoTime
>>>>> "Cédric" == Cédric Berger <firstname.lastname@example.org> 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 :-)