[Tutor] Time

Ahmed AL-Masri ahmedn82 at hotmail.com
Tue Jun 22 13:13:48 CEST 2010


Hi, 
I would calculate the running time of my simulation code.
any one know how to do that?

example

def demo():
    ########### the starting point of time should be 0
     f.simulate(data)
    ########### the end of the class so need to find the time in Sec.?
    ########### print time in sec.
if __name__ == '__main__':
    demo()

look forward to seeing the answer,

Thanks a lot,
A. Naufal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100622/fc851695/attachment.html>


More information about the Tutor mailing list