#11557: Machine-readable timeit() output
-----------------------------+----------------------------------------------
   Reporter:  vbraun         |          Owner:  tbd            
       Type:  enhancement    |         Status:  positive_review
   Priority:  major          |      Milestone:  sage-4.7.2     
  Component:  performance    |       Keywords:                 
Work_issues:                 |       Upstream:  N/A            
   Reviewer:  John Palmieri  |         Author:  Volker Braun   
     Merged:                 |   Dependencies:                 
-----------------------------+----------------------------------------------
Changes (by vbraun):

  * status:  needs_review => positive_review


Old description:

> This patch implements an optional `seconds=True` keyword argument to
> return the number of seconds as a floating-point number instead of
> printing something on the screen:
> {{{
> sage: t = timeit("print 'Hi'", seconds=True)
> sage: t
> 6.7710876464843747e-07
> }}}
> This makes it much easier to make plots for timing information.

New description:

 This patch implements an optional `seconds=True` keyword argument to
 return the number of seconds as a floating-point number instead of
 printing something on the screen:
 {{{
 sage: t = timeit("print 'Hi'", seconds=True)
 sage: t
 6.7710876464843747e-07
 }}}
 This makes it much easier to make plots for timing information.

 Apply [attachment:trac_11557_timeit_in_seconds.patch],
 [attachment:trac_11557-referee.patch]

--

Comment:

 I'm happy with them, too. I take it you mean "positive review" by that :-)

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11557#comment:5>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to