Menu

09 April 2011

PythonTimer Class

I have created PythonTimer class


import PythonTimer

t = PythonTimer.TickTockTimer()
t.StartTimer()
t.GetTime()
3.9744668006896973
 
t.Pause()
t.GetTime()
16.001962900161743
t.GetTime()
16.001962900161743

t.UnPause()
t.GetTime()
18.171801805496216
t.GetTime()
19.801760911941528

Download from  http://code.activestate.com/recipes/577646-pythontimer/

By- Narendra Sisodiya

No comments: