On Mon, Nov 24, 2008 at 6:31 PM, Tim Lahey <[EMAIL PROTECTED]> wrote: > I know I could parse the output, but I thought someone might have done > it and it sounds like the timeit doctest framework might do it. > > Where can I find this in the source so I can see how it is doing it?
You can do this in 3.2: sage: s = timeit.eval("2+3") sage: s 625 loops, best of 3: 942 ns per loop sage: s.stats (625, 3, 3, 942.230224609375, 'ns') The code is in sage/misc/sage_timeit.py and sage/misc/sage_timeit_class.py. --Mike --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---