Ask Your Question

Revision history [back]

You can assemble the timing data using sage.misc.sage_timeit (visit http://doc.sagemath.org/html/en/reference/misc/sage/misc/sage_timeit.html for documentation):

sage: cmd = 'simplicial_complexes.PoincareHomologyThreeSphere().homology()'
sage: a = sage_timeit(cmd, globals())
sage: a # full timing data for the command
5 loops, best of 3: 16.8 ms per loop
sage: a.stats
(25, 3, 3, 16.850331239998013, 'ms')

sage: a = sage_timeit(cmd, globals(), seconds=True)
sage: a # time in seconds for the command
0.016884897239999645