[Tutor] I can't believe this needs to be this complex

Kent Johnson kent37 at tds.net
Sun Aug 3 14:15:01 CEST 2008

On Sun, Aug 3, 2008 at 4:00 AM, Alan Gauld <alan.gauld at btinternet.com> wrote:
> "Dick Moores" <rdm at rcblue.com> wrote
>>>> code I time. What's an example of code that would have System be greater
>>>> than zero? And what's the distinction between User and System? (I'm using
>>>> Win XP, if that's relevant.)
> It may be that XP doesn't report System time.

>From the IPython help for 'run':

    -t: print timing information at the end of the run.  IPython will
give    you an estimated CPU time consumption for your script, which
under    Unix uses the resource module to avoid the wraparound
problems of    time.clock().  Under Unix, an estimate of time spent on
system tasks    is also given (for Windows platforms this is reported
as 0.0).


More information about the Tutor mailing list