<p>In <a href="https://github.com/mlpack/mlpack/pull/567#discussion_r56053378">src/mlpack/core/util/timers.cpp</a>:</p>
<pre style='color:#555'>&gt; @@ -69,15 +61,18 @@ bool Timers::GetState(std::string timerName)
&gt;  
&gt;  void Timers::PrintTimer(const std::string&amp; timerName)
&gt;  {
&gt; -  timeval&amp; t = timers[timerName];
&gt; -  Log::Info &lt;&lt; t.tv_sec &lt;&lt; &quot;.&quot; &lt;&lt; std::setw(6) &lt;&lt; std::setfill(&#39;0&#39;)
&gt; -      &lt;&lt; t.tv_usec &lt;&lt; &quot;s&quot;;
&gt; +  long long int totalDuration = timers[timerName].count();
&gt; +  // Converting microseconds to seconds
&gt; +  long long int totalDurationSec = totalDuration / 1e6;
&gt; +  long long int totalDurationMicroSec = totalDuration % 1000000;
</pre>
<p>Converted all the values to std::chrono::duration, to avoid casting issues.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/pull/567/files#r56053378">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFBCezJlZAbKNciGS5GKoKZ0JLRWCks5ptavhgaJpZM4Hvwm7.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/pull/567/files#r56053378"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>