Inheritance diagram for wx.StopWatch:
The wx.StopWatch class allow you to measure time intervals. For example, you may use it to measure the time elapsed by some function:
sw = wx.StopWatch()
# Call some long running method...
CallLongRunningFunction()
print "The long running function took %ld ms to execute"%sw.Time()
sw.Pause()
# ... stopwatch is stopped now ...
sw.Resume()
CallLongRunningFunction()
print "And calling it twice took %ld ms in all"%sw.Time()
See also
Pauses the stop watch. Call Resume to resume time measuring again.
If this method is called several times, Resume() must be called the same number of times to really resume the stop watch. You may, however, call Start to resume it unconditionally.
(Re)starts the stop watch with a given initial value.
Parameters: