Currently I\'m getting the execution wall time of my program in seconds by calling:
time_t startTime = time(NULL); //section of code time_t
If you can do this outside of the program itself, in linux, you can use time command (time ./my_program).
time
time ./my_program