octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #52858] Consider using C gnulib clock_gettime(


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #52858] Consider using C gnulib clock_gettime() for Octave cputime()
Date: Thu, 11 Jan 2018 18:29:14 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0

Follow-up Comment #2, bug #52858 (project octave):

Noting here that I would also like to look at using clock_gettime instead of
gettimeofday on supported systems for a higher resolution wall clock value as
well.

Both of these changes would need to affect the classes defined in
liboctave/sys/oct-time.h, replacing all of the microsecond fields with
nanosecond resolution fields.

Octave's configure script already checks for the existence of clock_gettime
and clock_settime, so code only needs to use the HAVE_CLOCK_GETTIME macro
already defined in config.h, as well as testing for the existence of whichever
CLOCK_FOO is desired.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52858>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]