[openrtm-commit:00790] r2354 - trunk/OpenRTM-aist/src/lib/rtm
openrtm @ openrtm.org
openrtm @ openrtm.org
2012年 5月 7日 (月) 09:47:08 JST
Author: n-ando
Date: 2012-05-07 09:47:08 +0900 (Mon, 07 May 2012)
New Revision: 2354
Modified:
trunk/OpenRTM-aist/src/lib/rtm/PeriodicExecutionContext.cpp
Log:
Experimental code was checked in. Reverted.
Modified: trunk/OpenRTM-aist/src/lib/rtm/PeriodicExecutionContext.cpp
===================================================================
--- trunk/OpenRTM-aist/src/lib/rtm/PeriodicExecutionContext.cpp 2012-05-07 00:45:04 UTC (rev 2353)
+++ trunk/OpenRTM-aist/src/lib/rtm/PeriodicExecutionContext.cpp 2012-05-07 00:47:08 UTC (rev 2354)
@@ -128,7 +128,7 @@
coil::TimeValue t1(coil::gettimeofday());
coil::TimeValue period(getPeriod());
- if (1 /*count > 1000*/)
+ if (count > 1000)
{
RTC_PARANOID(("Period: %f [s]", (double)period));
RTC_PARANOID(("Execution: %f [s]", (double)(t1 - t0)));
@@ -140,7 +140,7 @@
if (count > 1000) { RTC_PARANOID(("sleeping...")); }
coil::sleep((coil::TimeValue)(period - (t1 - t0)));
}
- if (1 /* count > 1000*/ )
+ if (count > 1000)
{
coil::TimeValue t3(coil::gettimeofday());
RTC_PARANOID(("Slept: %f [s]", (double)(t3 - t2)));
openrtm-commit メーリングリストの案内