I wanted to know,,,clock(); functioning in C++,,,actually I am making a program based on IQ analysis and It has certain time limit in each question for answering,,,but as I don't know how to use clock(),,,,,that's why it's creating a problem for me.....plzzz help me out.....I would be very thankful...
valkyrie
0
Newbie Poster
Recommended Answers
Jump to PostYour link appears to be broken -- I get an IE error that the page can not be displayed.
Jump to PostTry this one:
http://cplusplus.com/reference/clibrary/ctime/difftime/
I think it was the intended destination.
Jump to PostThat link works ok, but it does not sole the OPs question.
@valkyrie: You will want to ask the question(s) in another thead so that the main thread can cancel it out when the time has expired. Something on this order (assuming MS-Windows operating system). Note that you don't …
Jump to PostYou could use instead: http://cplusplus.com/reference/clibrary/ctime/time/
All 13 Replies
alaa sam
-2
Junior Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Fbody
682
Posting Maven
Featured Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
alaa sam
-2
Junior Poster
pseudorandom21
166
Practically a Posting Shark
valkyrie
0
Newbie Poster
valkyrie
0
Newbie Poster
valkyrie
0
Newbie Poster
template<>
37
Junior Poster
pseudorandom21
166
Practically a Posting Shark
valkyrie
0
Newbie Poster
template<>
37
Junior 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.