[GRASS-SVN] r64507 - grass/trunk/gui/wxpython

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Feb 8 09:29:38 PST 2015


Author: martinl
Date: 2015-02-08 09:29:38 -0800 (Sun, 08 Feb 2015)
New Revision: 64507

Modified:
   grass/trunk/gui/wxpython/wxgui.py
Log:
wxGUI: add debug message to print startup time (cosmetics)

Modified: grass/trunk/gui/wxpython/wxgui.py
===================================================================
--- grass/trunk/gui/wxpython/wxgui.py	2015-02-08 17:05:54 UTC (rev 64506)
+++ grass/trunk/gui/wxpython/wxgui.py	2015-02-08 17:29:38 UTC (rev 64507)
@@ -21,9 +21,11 @@
 import os
 import sys
 import getopt
+import time
 
 from core import globalvar
 from core.utils import _
+from core.debug import Debug
 
 from grass.exceptions import Usage
 from grass.script.core import set_raise_on_error
@@ -126,12 +128,16 @@
         printHelp()
 
     workspaceFile = process_opt(opts, args)[0]
-
+    
+    start = time.time()
+    
     app = GMApp(workspaceFile)
     # suppress wxPython logs
     q = wx.LogNull()
     set_raise_on_error(True)
 
+    Debug.msg(1, "wxGUI started in %.6f sec" % (time.time() - start))
+    
     app.MainLoop()
 
 if __name__ == "__main__":



More information about the grass-commit mailing list