diff --git a/src/timequiz.c b/src/timequiz.c index 45fa6b5..10a32cd 100644 --- a/src/timequiz.c +++ b/src/timequiz.c @@ -72,6 +72,10 @@ void timequiz() { scanf_s("%d", &userAnswer); processUserAnswer(userAnswer, correctIndex, &score, &totalCorrectAnswers, answers[questionIndex]); + + totalAnsweredQuestions++; + currentTime = time(NULL); + elapsedTime = (int)difftime(currentTime, startTime); } }