how to calculate total duration time of sketchpad?
I am planning an experiment about solving an anagram.
Every time participant sees a word, he/she presses any key and write the word into the text input and then anagram comes again. I want them to be able to see anagram only for 180000 ms in total. I could calculate the time between the time_anagram and time_text_input and I could get the cumulative total. But because this calculation is based on time_text_input, when the time is up anagram doesn't disappear. It only disappears after the text_input, if the time is up.
So, I need a variable which counts the duration time of the sketchpad including anagram, independent from text_input. When cumulative total of time_anagram reaches to 180000 ms, the loop should break.
Is there any suggestion to solve this problem?
Thanks in advance!