[Tutor] compile time calculator

Blockheads Oi Oi breamoreboy at yahoo.co.uk
Fri Jan 27 17:10:44 CET 2012


On 27/01/2012 15:46, Surya K wrote:
> Hi,
>
> I want to calculate compile time for my puzzles. Although I read about
> timeit(), I didn't really understand how it should be applied it.
> So, can anyone write a function for me please!!
>
> I am looking for a function which should solve my puzzle and also show
> compile time. (Later, I should be able to delete that function before
> submitting my code)
>
> The following way is what I am exactly looking at:
>
> define a compile time function such that it should take all my puzzle
> code and provide compile time for it.
>
> (I think timeit() should be called at each statement, which is not
> flexible, don't know exactly.)
>
> can anyone write a program for me? please...
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor

Nobody will write code for you unless you show that you've made an 
attempt yourself.  Perhaps you're looking for the standard profile 
module?  Or trying optimization prematurely?  Or what?  Please give more 
information about the precise nature of your problem and you will get 
many very useful answers.

-- 
Cheers.

Mark Lawrence.



More information about the Tutor mailing list