Files
libstrophe-gh-mirror/examples
Steffen Jaeckel 6881a2e770 add option to use clock_gettime() in perf example
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>
2022-08-05 12:36:22 +02:00
..
2022-06-23 09:44:00 +01:00
2022-06-23 09:44:00 +01:00
2016-04-14 15:23:38 +00:00
2020-03-31 17:37:12 +03:00

Build Instructions

Compile example files with the following gcc flags:

gcc -o bot bot.c `pkg-config --cflags --libs libstrophe`