Bug when changing resource time period fixed
authorgreg
Wed, 03 Jun 2009 14:57:10 +0200
changeset 367 2fdf57d0ce51
parent 366 764a7584022c
child 368 591ba4003d74
Bug when changing resource time period fixed
graphics/GraphicCommons.py
--- a/graphics/GraphicCommons.py	Wed Jun 03 12:47:21 2009 +0200
+++ b/graphics/GraphicCommons.py	Wed Jun 03 14:57:10 2009 +0200
@@ -23,7 +23,7 @@
 #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 import wx
-import time
+from time import time as gettime
 from math import *
 from types import *
 
@@ -228,7 +228,7 @@
         
         self.DataConsumers = {}
         
-        self.LastRefreshTime = time.time()
+        self.LastRefreshTime = gettime()
         
         if register_tick and debug:
             self.DataProducer.SubscribeDebugIECVariable("__tick__", self)
@@ -268,7 +268,7 @@
     
     def NewDataAvailable(self):
         self.Inhibit(True)
-        current_time = time.time()
+        current_time = gettime()
         if current_time - self.LastRefreshTime > REFRESH_PERIOD:
             self.LastRefreshTime = current_time
             wx.CallAfter(self.RefreshViewOnNewData)