Files
Phoenix/docs/sphinx/rest_substitutions/snippets/python/converted/wx.StopWatch.1.py
2016-05-18 16:38:18 -07: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())