title: Formatting struct timespec
body: <p>How to format <code>struct timespec</code> to string? This structure is returned e.g. by <code>clock_gettime()</code> on Linux gcc:</p>
  
  <pre><code>struct timespec {
      time_t   tv_sec;        /* seconds */
      long     tv_nsec;       /* nanoseconds */
  };
  </code></pre>