title: Is there a better way to generator/publish data at given Frequency other then using the clock() function
body: <p>I have to generate &amp; publish data (as protocol buffer messages) with a frequency of 1Hz and I have been thinking of alternatives to just sticking it into a While loop with a clock() function. Maybe I am over thinking the issue but any advice on the matter would be much appreciated thanks</p>