how can we calculate the time spent on executing a particular set of statements
pk09 0 Newbie Poster
Recommended Answers
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 …
Jump to PostWell that's one way to screw things up I suppose.
You're stuck in a 16-bit emulation of an x86, unable to access the 32-bit goodness of your real OS or real processor.
Perhaps consider upgrading to a compiler which is actually compatible with your OS.
Then you could …
All 8 Replies
Hiroshe 499 Posting Whiz in Training
Salem 5,265 Posting Sage
pk09 0 Newbie Poster
Salem 5,265 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.