title: Capturing a time in milliseconds
body: <p>The following piece of code is used to print the time in the logs:</p>
  
  <pre><code>#define PRINTTIME() struct tm  * tmptime;
  time_t     tmpGetTime;
  time(&amp;tmpGetTime);
  tmptime = localtime(&amp;tmpGetTime);
  cout &lt;&lt; tmptime-&gt;tm_mday &lt;&lt; "/" &lt;&lt;tmptime-&gt;tm_mon+1 &lt;&lt; "/" &lt;&lt; 1900+tmptime-&gt;tm_year &lt;&lt; " " &lt;&lt; tmptime-&gt;tm_hour &lt;&lt; ":" &lt;&lt; tmptime-&gt;tm_min &lt;&lt; ":" &lt;&lt; tmptime-&gt;tm_sec&lt;&lt;"&gt;&gt;";
  </code></pre>
  
  <p>Is there any way to add milliseconds to this? </p>