This is done to support architectures where `rdtsc()` is not implemented. In case it is available use `clock_gettime()`. Otherwise still fall back to use `clock()`. The first approach was to always use `clock_gettime()` if it is available but the overhead it brings compared to `rdtsc()` is high, so I chose to only try to use it if `rdtsc()` is not implemented. Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
Build Instructions
Compile example files with the following gcc flags:
gcc -o bot bot.c `pkg-config --cflags --libs libstrophe`