title: Is there a standard way to convert a struct timeval into a struct timespec?
body: <p><code>struct timeval</code> represents and instant in time with two members, <code>tv_sec</code> (seconds) and <code>tv_usec</code> (microseconds). In this representation, <code>tv_usec</code> is not by itself an absolute time it is a sub second offset off of <code>tv_sec</code>.</p>
  
  <p><code>struct timespec</code> works the same way except that instead of microseconds it's offset (<code>tv_nsec</code>) is stored in nanosecond units.</p>
  
  <p>The question is: Is there a standard way to convert between these two?</p>