Added timestamps for timers debug msgs

This commit is contained in:
HomeWorld
2010-08-30 13:57:52 +03:00
parent b7fe419c70
commit 0f748915c0

View File

@@ -51,6 +51,7 @@ Version 0.1
import wx
import copy
import time
class PyGauge(wx.PyWindow):
"""
@@ -225,7 +226,7 @@ class PyGauge(wx.PyWindow):
print "Timer created: %d" % self._timerId
self._animStep = 0
self._timer.Start(self._animStep)
print "Timer started: %d" % self._timerId
print "Timer started: %d - %f" % (self._timerId, time.time())
for v in self._value:
if v < 0 or v > self._range:
raise Exception("ERROR:\n Gauge value must be between 0 and it's range. ")
@@ -354,7 +355,7 @@ class PyGauge(wx.PyWindow):
if stop_timer:
self._timer.Stop()
print "Timer stopped: %d" % self._timerId
print "Timer stopped: %d - %f" % (self._timerId, time.time())
self._timerOn=0
self.SortForDisplay()