Janne Blomqvist wrote:
Needing to link with librt in order to access clock_gettime is an unfortunate wart in glibc, but other C libraries exist out there (heck, given the success of Android, glibc is certainly a minority even if you limit yourself to Linux), and of those that provide clock_gettime, most have it directly in libc and not in a separate library.
I think that has changed in GLIBC 2.17: http://sourceware.org/git/?p=glibc.git;a=blob_plain;f=NEWS;hb=HEAD
Tobias