Trees | Indices | Help |
|
---|
|
object --+ | DLTime
Data Logger client data record time class. This class provides a common time object for manipulating data record time. Internally, time is stored and maniuplated in microseconds since SimWB frame times are only accurate to the microsecond (even though they are reported as seconds and nanoseconds). Create an object: import simwbPath import simwbDLClient as dl t = dl.DLTime(microseconds) t = dl.DLTime(seconds, nanoseconds) t = dl.DLTime() # 0 microseconds t.load(1000) # 1000 microseconds t.load(12,40000) # 12 seconds + 40000 nanoseconds, or 12000040 usec Time properties (using the last example above): t.us # (long) microseconds 12000040 t.sec # (float) seconds 12.00004 t.asctime # (ASCII) string ala time.asctime() 'Wed Dec 31 19:00:12 1969' Standard mathematical/logical operations that make sense for times are defined between DLTime objects.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Properties | |
asctime String representation ala time.asctime() |
|
sec Time as floating point seconds |
|
Inherited from |
Method Details |
hash(x)
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
repr(x)
|
Load a DLTime object: t.load(microseconds) t.load(seconds, nanoseconds) |
Property Details |
asctimeString representation ala time.asctime()
|
Trees | Indices | Help |
|
---|
(c) Concurrent Real-Time | http://www.concurrent-rt.com |