[Tutor] Time

Christopher King g.nius.ck at gmail.com
Thu Jun 24 15:38:31 CEST 2010


I have a module which measures elapsed time. It can also wait til a certain
amount of time has passed till ending. I can send it to you if you like.

On Thu, Jun 24, 2010 at 8:59 AM, Hugo Arts <hugo.yoshi at gmail.com> wrote:

> On Wed, Jun 23, 2010 at 3:11 AM, Dave Angel <davea at ieee.org> wrote:
> >
> > If you're really looking to measure performance, you should use the
> timeit
> > module.  But for simply deciding how much time has elapsed between two
> > points in your code, you can use the time.time() function.
> >
>
> Another one I think is worth mentioning is the cProfile module. Though
> timeit or time.time are more useful when you simply want to know how
> long some task took, when you're optimizing your code and wondering
> what's taking a lot of time, cProfile will tell you.
>
> Hugo
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100624/b776d355/attachment-0001.html>


More information about the Tutor mailing list