int S;
sendMessage(NOTIF_STEP, "Sub is Computing");
- S = 1+(int) (15.0*rand()/(RAND_MAX+1.0));
- sleep(S);
+// S = 1+(int) (15.0*rand()/(RAND_MAX+1.0));
+ S = 5 ;
+ while ( S ) {
+ S = sleep(S);
+ }
MESSAGE( "SubComponentEngine::Sub( " << x << " , " << y << " , " << z
<< " ) after " << S << " seconds" )
endService( " SubComponentEngine::Sub" );