mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-31 16:10:07 +01:00
11 lines
315 B
Python
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())
|