On Sun, Aug 3, 2008 at 4:00 AM, Alan Gauld <[EMAIL PROTECTED]> wrote:
> "Dick Moores" <[EMAIL PROTECTED]> 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).

Kent
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to