The clock() function works fine in Visual C++ Version 6. I used it for evaluating how many milliseconds certain functions needed. But with Version 8 it won't let me use time.h the library that holds clock(). Naturally the error is unreadable, but there's hundreds of them and its obviously complaining about my including "time.h". Naturally Help is of no value. The "Dot Net Framework Equivalent" says "Not Applicable."
Is there a way to get time.h to be accepted? Or is there another function to use? (In this most recent version of the code I've added some windows calls which were put in with the CLI wizard.)

Walt

Recommended Answers

All 2 Replies

did you try <ctime>

Yes.
Thanks.
That clue sent me on the way to fixing it.
Thanks again.

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.