You confound timer and timer. The timer you display is a countdown, the computer timer is an utility used to launch periodic events, you decide what happen on such an event.
Tracking time is done with hardware RTC (Real Tome Clock).
So you need 1 timer to throw periodical events, those events launch a routine that handle countdown on screen, questions change and any thing you need.
RTC have a
now
function
set
QuestionDL
deadline to
now+60 secondes
remaining time for question is
QuestionDL-now
Question: your program perform 10 tests of 1 minute and 1 question per test. Is it really what it is supposed to be?
[Update]
Quote:
I have One Test With 10Question total Time is 10 Min
In this case, enforcing 1 minutes per question is wrong, it change the test.
- if I am slow to answer and need 2 minutes per question, I can expect 5 good answers. if you set a 1 minute limit per question, I can answer zero question.
- if first question is super easy and I answer in 10 seconds, I should have a 50 seconds bonus time for a later question. if you set a 1 minute limit per question, the 50 seconds are lost.
- In paper test, all questions are shown at same time and student can answer questions in any order and he can answer easy questions first which give bonus time for harder ones.