title: Converting time in milliseconds since epoch to time in yy-dd-hh-ss format
body: <p>I have a bunch of tasks which are in the order of microseconds, the below code prints only until seconds (Thu Oct 21 12:48:20 2021) so comparing the values of start and finish always ends up giving 0. I want to be able to compare in the order of milliseconds and microseconds. Is there a function to help with this?</p>
  <p>Also, is there a way to convert <code>uint64_t current1 = std::chrono::system_clock::now().time_since_epoch().count();</code> to <code>time_t</code> to print out the current time based on the <code>count()</code>?</p>
  <pre><code>const auto p1 = std::chrono::system_clock::now();
      std::time_t now = std::chrono::system_clock::to_time_t(p1);
      std::cout &lt;&lt; &quot;now: &quot; &lt;&lt; std::ctime(&amp;now);
  </code></pre>