فهرست منبع

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()