title: How to find the newest files in directory?
body: <p>Suppose i have a directory in /tmp/myDir where files are constantly created, modified and destroyed by a daemon.
  I need to periodically (every 45 seconds) monitor last created files. To do that i must determine which files were created after the last check.
  What would be the best way to do that from a c daemon?</p>
  
  <p>If possible, the method should avoid opening every file in the directory during each check.</p>