counterslib Copy the folder, and run ./compile.sh In your code you need to use init_time(), and after that, print_time(). Time between calls are showed.