A really simple C library to perform C code runtime performance analysis
This library works on a lot of Linux/UN*X OS as well as on MacOS, it's very simple and comes with an example file that shows how to use it.
clone the git repository here and then cd into it and run make to build the example code.
Read ccpal_example.c for more info on how to use ccpal in your own code or read the full descriptive article on my blog here: https://paolozaino.wordpress.com/2015/06/13/c-code-snippet-to-measure-function-execution-time-for-both-linux-and-mac-os-x/