I am attempting to see have much run time a program takes, and eventually check the runtime of different pieces of the program. (As it runs it seems to get slower and slower without explanation)
Anyways, I tried the sample code posted on a super simple program.
If I wanted to use it at multiple stages in a larger program (in c) would I simply repeat the printf part? Or is there a better way to do this?
I am very new to programming, and got drafted into trying to fix up an inefficient and giant program for my university.
Any help is greatly appreciated