mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-15 16:27:06 +01:00
⁉️ Not sure if the generated .rst stuff is intended to have
whitespace like this in it or not, so seperating this from the other
commits, so easy to revert if necessary.
11 lines
311 B
Python
11 lines
311 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())
|