time to run a program in C

Posted by yCalleecharan on Stack Overflow See other posts from Stack Overflow or by yCalleecharan
Published on 2010-04-07T09:46:46Z Indexed on 2010/04/07 9:53 UTC
Read the original article Hit count: 279

Filed under:
|
|

Hi, I would like to know what lines of C code to add to a program so that it tells me the total time that the program takes to run. I guess there should be counter initialization near the beginning of main and one after the main function ends. Is the right header clock.h?

Thanks a lot...

© Stack Overflow or respective owner

Related posts about c

    Related posts about elapsed