in reply to Timing Files in Directory

Your code is incomplete. Where do you actually try to open a file? You may want to look into the Benchmark module with the hireswallclock option.
-imran