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: Dan Sebald
Subject: [Octave-bug-tracker] [bug #52858] Consider using C gnulib clock_gettime() for Octave cputime()
Date: Wed, 10 Jan 2018 12:34:21 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

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

                 Summary: Consider using C gnulib clock_gettime() for Octave
cputime()
                 Project: GNU Octave
            Submitted by: sebald
            Submitted on: Wed 10 Jan 2018 05:34:19 PM UTC
                Category: Performance
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Performance
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

There was a discussion in another bug that led to the question of whether
Octave should use the clock_gettime() in cputime() rather than its current
implementation, which I believe is getrusage():

https://savannah.gnu.org/bugs/?52809#comment21

Here is a list of all the pertinent comments in that thread, in reverse
chronological order:

https://savannah.gnu.org/bugs/?52809#comment22
https://savannah.gnu.org/bugs/?52809#comment21
https://savannah.gnu.org/bugs/?52809#comment20
https://savannah.gnu.org/bugs/?52809#comment19
https://savannah.gnu.org/bugs/?52809#comment18
https://savannah.gnu.org/bugs/?52809#comment17
https://savannah.gnu.org/bugs/?52809#comment16
https://savannah.gnu.org/bugs/?52809#comment15
https://savannah.gnu.org/bugs/?52809#comment14
https://savannah.gnu.org/bugs/?52809#comment13

This is not a high priority, nor necessarily even an actual, bug.  So, this is
more just a consideration at this point.

This is unix-based, and Mac OS might be included.  There is an "Update" to the
winning post in this discussion:

https://stackoverflow.com/questions/12392278/measure-time-in-linux-time-vs-clock-vs-getrusage-vs-clock-gettime-vs-gettimeof

"Update: for OS X, clock_gettime has been implemented as of 10.12 (Sierra)."




    _______________________________________________________

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]