timing function for while loop
I was just wondering, if I want to write a while loop which says while x seconds hasn't reach execute this statement, how would I go about it? I tried using while(ros::Duration(x).sleep()){ .... } but it doesn't work. also, tried creating a counter but there is no way to measure the count in seconds
thanks,