Custom Search

Saturday, April 9, 2011

PythonTimer Class example

PythonTimer Class example

>>> import PythonTimer
>>> t = PythonTimer.TickTockTimer()
>>> t.StartTimer()
>>> t.GetTime()
3.9744668006896973

>>> t.GetTime()
15.794264793395996

>>> t.Pause()
>>> t.GetTime()
16.001962900161743
>>> t.GetTime()
16.001962900161743

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

More....

No comments:

Post a Comment