On Friday 23 October 2015 08:55:22 Amitoj Kaur Chawla wrote:
Just to clarify, I should change this to sprintf(buf, "%llu.%8.8lu", now.tv_sec, now.tv_nsec / NSEC_PER_USEC);
Sorry, it should be changed to sprintf(buf, "%llu.%.08lu", (long long)now.tv_sec, now.tv_nsec / NSEC_PER_USEC);
Yes, the last version of that looks correct to me.
Arnd