 class="comment">// The function writes the collected data to the file</span>
    <span class="keyword">void</span> <span class="identifier">write_data</span><span class="special">();</span>
<span class="special">};</span>
</pre>
<p>
        </p>
<p>
          Compared to the earlier definition we added the <code class="computeroutput"><span class="identifier">write_interval</span></code>
          constructor parameter so we can set the statistical information flush interval
          in the settings file.