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