timeyourcode Simple C code to measure execution time. It was extracted from Ostrich benchmark. Usage look in timertest.c compilation gcc timer.c your_code.c -o executable simple but useful