From: SourceForge.net <no...@so...> - 2003-12-14 17:54:34
|
Bugs item #859902, was opened at 2003-12-14 10:54 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=859902&group_id=4933 Category: Lisp Core Group: None Status: Open Resolution: None Priority: 5 Submitted By: Robert Dodier (robert_dodier) Assigned to: Nobody/Anonymous (nobody) Summary: TIMING_INFO gets time units mixed up Initial Comment: TIMER_INFO gets units of time mixed up -- in the example below, should show 0.25 seconds instead of 25 seconds; setting TIMER_DEVALUE:TRUE before calling FF(200) makes the time come out as 0.25 seconds as expected. Note that the time reported for GG is 25 seconds while the time for FF is 0.25 seconds -- the two should be identical or nearly so. See also bug report #572835 ("timer_info gives incorrect time"). Maxima 5.9.0 cvs version of 20031128, clisp 2.31, redhat linux 7.1 (kernel 2.4.2). --- begin example about timing_info --- (C1) GG(n):=if equal(n,0) then 0 else n+GG(n-1); (D1) GG(n) := IF EQUAL(n, 0) THEN 0 ELSE n + GG(n - 1) (C2) FF(n):=GG(n); (D2) FF(n) := GG(n) (C3) timer(FF,GG); (D3) [FF, GG] (C4) timer_info(); [ FUNCTION TIME//CALL CALLS RUNTIME GCTIME ] [ ] [ GG 0 0 0 0 ] (D4) [ ] [ FF 0 0 0 0 ] [ ] [ TOTAL 0 0 0 0 ] (C5) FF(200); (D5) 20100 (C6) timer_info(); [ FUNCTION TIME//CALL CALLS RUNTIME GCTIME ] [ ] [ GG .1262686567164179 SEC 201 25.38 SEC 0 ] (D6) [ ] [ FF 0.25 SEC 1 0.25 SEC 0 ] [ ] [ TOTAL .1268811881188119 SEC 202 25.63 SEC 0 ] --- end example about timing_info --- ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=859902&group_id=4933 |