Performance Measurement : Timer : Development : Python examples (example source code) Organized by topic

C++
PHP
Python
Python Home »  Development   » [  Timer  ]  Screenshots 
 



Performance Measurement



from timeit import Timer
print Timer('t=a; a=b; b=t', 'a=1; b=2').timeit()

print Timer('a,b = b,a', 'a=1; b=2').timeit()

           
       
Related examples in the same category
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.