This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch: FYI: System.nanoTime


>>>>> "Cédric" == Cédric Berger <cedric@berger.to> writes:

Cédric> +  if (clock_gettime (CLOCK_REALTIME, &now) == 0)

Cédric> Why do you use CLOCK_REALTIME?

Just ignorance I'm afraid.

Cédric> The problem is when you use CLOCK_REALTIME to measure
Cédric> elapsed time and the user changes the time...
Cédric> I had to write the same code for another project, and
Cédric> I used the following snipped for Linux/BSD/Solaris:

Thanks.  I will change it to something like this next week.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]