converting source code from window to linux
<pre><code>c++ (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5
</code></pre>

<p>I am converting some source code from windows to running on ubuntu.</p>

<p>However, the windows is using the code below to log messages and get the current time the message is logged. However, this is windows. What is the best way to convert this to running on linux?</p>

<pre><code>struct  _timeb timebuffer;
char    *timeline;

_ftime(&amp;timebuffer);
timeline = ctime(&amp;(timebuffer.time));
</code></pre>

<p>Many thanks for any advice,</p>
