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
melissa.johns 12 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Salem 5,199 Posting Sage
melissa.johns 12 Newbie Poster
jephthah commented: i'ma give you some positive rep because ... well, just because. good luck. :) +12
Salem 5,199 Posting Sage
jephthah 1,888 Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.