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.yo...@gmail.com> wrote: > On Wed, Jun 23, 2010 at 3:11 AM, Dave Angel <da...@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@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor >
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor