title: What's the best alternative library to gettimeofday() in C++?
body: <p>Is there a more Object Oriented alternative to using gettimeofday() in C++ on linux?  I like for instance to be able to write code similar to this:</p>
  
  <pre><code>DateTime now = new DateTime;
  DateTime duration = new DateTime(2300, DateTime.MILLISECONDS)
  DateTime deadline = now + duration;
  
  while(now &lt; deadline){
      DoSomething();
      delete now;
      now = new DateTime()
  }
  </code></pre>
  
  <p>The target is an embedded linux system and there are no Boost libraries, but maybe there is something that is easy to port (something implemented with header files only for example).</p>