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

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

You're right. Dan's original issue is about using clock_gettime to provide
cputime (process elapsed time) with nanosecond resolution. I interjected to
comment that I would also like to use clock_gettime so that functions like
time, clock, and now would also report nanosecond resolution. The
clock_gettime function can do both wall clock time and process time, but it's
not portable.

However this is done at the system level, it will also require API changes to
octave::sys::base_tm, octave::sys::cpu_time, etc, in the oct-time.h header
file to store nanoseconds.

    _______________________________________________________

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]