I am writing a math quiz game for my brother. And I want to know on which questions he takes more time and on which questions he takes lesser times to think.
So is there a way to know long long it takes him to input the answer?
You may use f.e. the time() function from <time.h>. It returns the time in seconds since beginning of 1970. Get the time when initially displaying your math question and another time when your brother answers it. The difference of both is the time in seconds he needs to answer the question.