From 8820a691e8ae2d312f9cf0c063c5506a53118c79 Mon Sep 17 00:00:00 2001 From: Worros Date: Mon, 1 Dec 2008 20:07:38 +0900 Subject: [PATCH] Update bulk import codepath to output total import time. --- pyfpdb/GuiBulkImport.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyfpdb/GuiBulkImport.py b/pyfpdb/GuiBulkImport.py index d76e30ed..e3bee81c 100644 --- a/pyfpdb/GuiBulkImport.py +++ b/pyfpdb/GuiBulkImport.py @@ -22,6 +22,7 @@ import pygtk pygtk.require('2.0') import gtk import os #todo: remove this once import_dir is in fpdb_import +from time import time class GuiBulkImport (threading.Thread): def import_dir(self): @@ -29,8 +30,9 @@ class GuiBulkImport (threading.Thread): self.path=self.inputFile self.importer.addImportDirectory(self.path) self.importer.setCallHud(False) + starttime = time() self.importer.runImport() - print "GuiBulkImport.import_dir done" + print "GuiBulkImport.import_dir done in %s" %(time() - starttime) def load_clicked(self, widget, data=None): self.inputFile=self.chooser.get_filename()