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 19:31:48 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0

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

The last time I looked they are not provided by gnulib. Gnulib does provide
some M4 autoconf code to check whether they are available, and add "-lrt" if
necessary, which is what we are already using.

Gnulib does provide a function called "gettime" which calls either nanotime
(BSD function?), clock_gettime (POSIX function), or gettimeofday. But this
only works as a wall clock function, this wouldn't work as a replacement for
process time as reported by getrusage for example.

    _______________________________________________________

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]