Getting the elapsed milliseconds from the beginning of the last second <p>Before everything sorry for my english, i am italian, and italians are not so good with other langs... Anyway, here's my actual code:</p> <pre><code> time_t t = time(0); struct tm * now = localtime( &amp; t ); cout &lt;&lt; (now-&gt;tm_mday) &lt;&lt; '/' &lt;&lt; (now-&gt;tm_mon + 01) &lt;&lt; '/' &lt;&lt; (now-&gt;tm_year + 1900) &lt;&lt; endl; cout &lt;&lt; (now-&gt;tm_hour) &lt;&lt; ':' &lt;&lt; (now-&gt;tm_min) &lt;&lt; ':' &lt;&lt; (now-&gt;tm_sec) &lt;&lt; endl; cout &lt;&lt; ; system("cls");` </code></pre> <p>Well, as you can see it prints out date(italian date order, so GG-MM-YYYY) and hour:mins:secs. Is there something like now->tm_millisecond? Or it's more complicated? As you can imagine i don't want the current date in millinseconds(millisecons passed till years 0) as almost everyone wants. I just want to get the elapsed time in MSs from the last beginning of a second. I am a beginner in c++, the basic code's took around the web. I just wan't the satisfaction to get itfinished. PLEASE DO NOT TELL ME TO MAKE BETTER THIS, TO MAKE BETTER THAT, TO USE A NEW WAY TO CLEAR SCREEN INSTEAD OF <code>system("cls")</code> RESPOND TO WHAT I ASKED.</p>