I need to find how long it takes to execute a bunch of code. I've tried using clock() but it's just not accurate enough for the small functions (it says 0 cycles have passed). I heard of gprof but that only seems to be for Linux. The version of Visual Studio I have doesn't have the profiling feature (it's only for professional and enterprise editions). Is there another way of doing this?

Thanks

Recommended Answers

All 2 Replies

Sorry. My search didn't find that. Thanks.

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.