Files
Phoenix/docs/sphinx/rest_substitutions/snippets/python/converted/StopWatch.1.py
2013-02-13 15:58:36 +00:00

11 lines
315 B
Python

sw = wx.StopWatch()
CallLongRunningFunction()
wx.LogMessage("The long running function took %dms to execute", sw.Time())
sw.Pause()
# stopwatch is stopped now ...
sw.Resume()
CallLongRunningFunction()
wx.LogMessage("And calling it twice took %dms in all", sw.Time())