Possible Duplicates:
Accurate timing of functions in python
accurately measure time python function takes
How can i mesure and compare the running times of my algorithms written in python .Also point me to a nice algorithms site/forum like stackoverflow if you can.