Menu

#633 TIME(%) always yields 0.0

closed
nobody
Lisp Core (460)
5
2009-05-28
2004-10-24
No

TIME(%) always yields 0.0.

The cause is that TIME (suprv1.lisp) returns the value
of LASTTIME when the TIME argument is %. However
LASTTIME is assigned 0 and never assigned anything
else; LASTTIME appears to be obsolete, and it is unused
except for this reference in TIME.

TIME uses the 'TIME property of output labels to fetch
the computation time. % isn't assigned the 'TIME
property, so presumably that's why TIME was asking for
LASTTIME.

Let's not resurrect LASTTIME. Instead let's (1) assign
% the 'TIME property (search for "putprop d-tag" in
macsys.lisp) to find the place to do it); and (2) cut
out the special case for % in TIME.

Discussion

  • Robert Dodier

    Robert Dodier - 2006-07-31
    • labels: --> Lisp Core
     
  • Dieter Kaiser

    Dieter Kaiser - 2009-05-28

    The suggested change to store the computation time in the symbol '$% has been checked out (rev. 1.74, macsys.lisp). The variable $lasttime has been cut out (rev. 1.80, suprv1.lisp).

    Closing this bug report as fixed.

    Dieter Kaiser

     
  • Dieter Kaiser

    Dieter Kaiser - 2009-05-28
    • status: open --> closed
     

Log in to post a comment.