equal
deleted
inserted
replaced
22 # along with this program; if not, write to the Free Software |
22 # along with this program; if not, write to the Free Software |
23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
24 |
24 |
25 import datetime |
25 import datetime |
26 |
26 |
27 #------------------------------------------------------------------------------- |
27 |
|
28 # ------------------------------------------------------------------------------- |
28 # Date and Time conversion function |
29 # Date and Time conversion function |
29 #------------------------------------------------------------------------------- |
30 # ------------------------------------------------------------------------------- |
30 |
31 |
31 SECOND = 1000000 # Number of microseconds in one second |
32 SECOND = 1000000 # Number of microseconds in one second |
32 MINUTE = 60 * SECOND # Number of microseconds in one minute |
33 MINUTE = 60 * SECOND # Number of microseconds in one minute |
33 HOUR = 60 * MINUTE # Number of microseconds in one hour |
34 HOUR = 60 * MINUTE # Number of microseconds in one hour |
34 DAY = 24 * HOUR # Number of microseconds in one day |
35 DAY = 24 * HOUR # Number of microseconds in one day |
147 "STRING": lambda v: "'%s'" % v, |
148 "STRING": lambda v: "'%s'" % v, |
148 "WSTRING": lambda v: '"%s"' % v, |
149 "WSTRING": lambda v: '"%s"' % v, |
149 "REAL": lambda v: "%.6g" % v, |
150 "REAL": lambda v: "%.6g" % v, |
150 "LREAL": lambda v: "%.6g" % v} |
151 "LREAL": lambda v: "%.6g" % v} |
151 |
152 |
152 #------------------------------------------------------------------------------- |
153 |
|
154 # ------------------------------------------------------------------------------- |
153 # Debug Data Consumer Class |
155 # Debug Data Consumer Class |
154 #------------------------------------------------------------------------------- |
156 # ------------------------------------------------------------------------------- |
155 |
157 |
156 |
158 |
157 class DebugDataConsumer: |
159 class DebugDataConsumer: |
158 """ |
160 """ |
159 Class that implements an element that consumes debug values |
161 Class that implements an element that consumes debug values |