From 37737b378c267fbae7753782e864bb3ae80b8992 2009-04-14 23:05:00 From: Brian Granger Date: 2009-04-14 23:05:00 Subject: [PATCH] Fix for https://bugs.launchpad.net/bugs/296386 This fixes the system time output when %run -t is called. --- diff --git a/IPython/Magic.py b/IPython/Magic.py index 32bdb6d..a6194ca 100644 --- a/IPython/Magic.py +++ b/IPython/Magic.py @@ -1675,7 +1675,7 @@ Currently the magic system has the following functions:\n""" exit_ignore=exit_ignore) t1 = clock2() t_usr = t1[0]-t0[0] - t_sys = t1[1]-t1[1] + t_sys = t1[1]-t0[1] print "\nIPython CPU timings (estimated):" print " User : %10s s." % t_usr print " System: %10s s." % t_sys @@ -1687,7 +1687,7 @@ Currently the magic system has the following functions:\n""" exit_ignore=exit_ignore) t1 = clock2() t_usr = t1[0]-t0[0] - t_sys = t1[1]-t1[1] + t_sys = t1[1]-t0[1] print "\nIPython CPU timings (estimated):" print "Total runs performed:",nruns print " Times : %10s %10s" % ('Total','Per run')