浏览代码

wxGUI: add start debug message (time) for standalone monitor

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@63737 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 年之前
父节点
当前提交
346a7971a3
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      gui/wxpython/mapdisp/main.py

+ 5 - 1
gui/wxpython/mapdisp/main.py

@@ -28,6 +28,7 @@ This program is free software under the GNU General Public License
 
 import os
 import sys
+import time
 
 from core          import globalvar
 import wx
@@ -488,7 +489,8 @@ if __name__ == "__main__":
 
     RunCommand('g.gisenv',
                set = 'MONITOR_%s_PID=%d' % (monName.upper(), os.getpid()))
-    
+
+    start = time.time()
     gmMap = MapApp(0)
     mapFrame = gmMap.GetMapFrame()
     mapFrame.SetTitle(monName)
@@ -496,6 +498,8 @@ if __name__ == "__main__":
         mapFrame._giface.ShowAllToolbars(monDecor)
         mapFrame._giface.ShowStatusbar(monDecor)
     mapFrame.Show()
+    Debug.msg(1, "WxMonitor started in %.6f sec" % \
+                  (time.time() - start))
     
     gmMap.MainLoop()