<div>Hey, there</div><div><br></div><div>I am using rabbitmq-c for some applications. I got those code from the amqp_consumer.c, and the filed "next_summary_time " seemed to confuse me. What does the if&nbsp;</div><div><br></div><div>clause (in bold) do here?</div><div><br></div><div>Many thanks!</div><div><br></div><div>&nbsp;</div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"> ......&nbsp;</blockquote><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"></blockquote><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;">#define SUMMARY_EVERY_US 100000</blockquote><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;">&nbsp;......</blockquote><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;">uint64_t next_summary_time = start_time + SUMMARY_EVERY_US;<br>uint64_t&nbsp;now = now_microseconds();<br>&nbsp; &nbsp; <i>&nbsp; </i><b>if (now &gt; next_summary_time) {</b><br>&nbsp; &nbsp; &nbsp; &nbsp; int countOverInterval = received - previous_received;<br>&nbsp; &nbsp; &nbsp; &nbsp; double intervalRate = countOverInterval / ((now - previous_report_time) / 1000000.0);<br>&nbsp; &nbsp; &nbsp; &nbsp; printf("%d ms: Received %d - %d since last report (%d Hz)\n",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(int)(now - start_time) / 1000, received, countOverInterval, (int) intervalRate);<br>&nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; previous_received = received;<br>&nbsp; &nbsp; &nbsp; &nbsp; previous_report_time = now;<br>&nbsp; &nbsp; &nbsp; &nbsp; next_summary_time += SUMMARY_EVERY_US;<br>&nbsp; &nbsp; &nbsp; }<br>&nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; amqp_maybe_release_buffers(conn);<br>......</blockquote><div><br></div><div>Hugo.&nbsp;</div>