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
Recommended Answers
Jump to Postwithout buying $$$ some expensive profiling programs, that would be about the simplest way to do it.
Jump to Post> As it runs it seems to get slower and slower without explanation
That sounds like it's consuming memory to me.You haven't said which Operating system or compiler you're using.
Some come with $0 profilers.> I am very new to programming, and got drafted into trying …
All 5 Replies
Ancient Dragon 5,243
Achieved Level 70 Team Colleague Featured Poster
Salem 5,138
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,138
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.