Improved POSIX timings

Using nanosleep() for high-resolution timings.

Andrea Zoppi