title: Get local time in nanoseconds
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/275004/c-timer-function-to-provide-time-in-nano-seconds">C++ Timer function to provide time in nano seconds</a>  </p>
  </blockquote>
  
  
  
  <p>I need to measure the duration of a function execution in nanoseconds resolution. Is it possible? Our ordinary computer hardware and software are able to give such a precision for time? If yes how to accomplish that with c++? Is it possible with Boost library?</p>