how can we calculate the time spent on executing a particular set of statements
pk09
0
Newbie Poster
Recommended Answers
Jump to Posttime.h. Look at the example on difftime().
Jump to PostUsing time.h to time code is like using a sundial to time a bullet.
You could use it if you're doing a lot of work (say sorting 1M integers), then time.h might work (so long as it takes several seconds).
But for anything consistently below 1 second, you …
All 8 Replies
Hiroshe
499
Posting Whiz in Training
Salem
5,138
Posting Sage
pk09
0
Newbie Poster
Salem
5,138
Posting Sage
keerthiga
-7
Newbie Poster
yellowSnow
607
Posting Whiz in Training
ronelpadz
0
Newbie Poster
9868
35
Light Poster
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.