Well, you can check cpu utilization by all running processes, including your c program, using
top command.
After invoking your c program, invoke top command, so you will able to see your program and it's cpu usage in list of processes shown by top.
Hope this is what you're looking for.