[openrtm-commit:00392] r468 - branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist
openrtm @ openrtm.org
openrtm @ openrtm.org
2011年 9月 8日 (木) 11:41:34 JST
Author: kurihara
Date: 2011-09-08 11:41:33 +0900 (Thu, 08 Sep 2011)
New Revision: 468
Modified:
branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/TimeMeasure.py
Log:
Added getTime method which return time when Time object was created.
Modified: branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/TimeMeasure.py
===================================================================
--- branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/TimeMeasure.py 2011-09-07 04:57:37 UTC (rev 467)
+++ branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/TimeMeasure.py 2011-09-08 02:41:33 UTC (rev 468)
@@ -119,6 +119,11 @@
self.usec = long(float(tm_f) * float(usec_per_sec)) # sec -> usec (micro second)
return OpenRTM_aist.TimeValue(self.sec, self.usec)
+
+ def getTime(self):
+ return OpenRTM_aist.TimeValue(self.sec, self.usec)
+
+
##
# TimeMeasure object
#
openrtm-commit メーリングリストの案内