Inaccurate timer

126 views
Skip to first unread message

underhau...@gmail.com

unread,
Mar 29, 2019, 12:38:53 PM3/29/19
to LIONESS Lab help and discussion
Hi,

Have someone else experience that the timer is inaccurate?

When I set a countdown of 5 minutes on my phone and compare it with the timer in the lobby, the timer in the lobby has 2 minutes left when my phone has done counting.

Cheers,
Martin


Marcus Giamattei

unread,
Mar 29, 2019, 12:50:50 PM3/29/19
to LIONESS Lab help and discussion
Hej Martin,

just doublechecked, but could not reproduce your error. Any special browser or something like that? Best

underhau...@gmail.com

unread,
Mar 30, 2019, 8:18:59 AM3/30/19
to LIONESS Lab help and discussion
Hi again,

I know this sounds weird, but this is how I can reproduce the mistake: 

If you are in the lobby waiting, and then change to another tab to something else while the "clock is ticking", it seems like the timer is counting slower, and I have no idea why. I just took the time while waiting in the lobby, and remain in the lobby tab the whole time, and then the timer is quite accurate. But then I chose to wait for two more minutes and change tab. Set my mobile countdown at 2 minutes, and when it was done, the lobby timer still had 1 minute and 43 seconds left, so it had just counted 17 seconds..





Lucas Molleman - LIONESS Lab Development Team

unread,
Mar 30, 2019, 9:10:11 AM3/30/19
to LIONESS Lab help and discussion
Hi Martin,

Thanks for this. In some browsers JavaScript (which controls this timer) is 'throttled' when a tab is not in focus. That would mean that the clock can indeed stop after a while. 

Note that this would not generally affect participants' experience (as they would probably watch the experimental screen) - however, we cannot prevent anyone to switch tabs like this. We are currently working towards a solution by implementing a different version of this timer which is not dependent on the experiment tab being in focus while waiting. We will get back to you about this asap.

Lucas

Tony Hua

unread,
Sep 21, 2022, 3:49:04 AM9/21/22
to LIONESS Lab help and discussion
Hi Lucas,

Has this problem been resolved, or is there a work around? I seem to be having the same issue.

Tony

in...@lioness-lab.org

unread,
Sep 21, 2022, 4:08:24 AM9/21/22
to Tony Hua, LIONESS Lab help and discussion

Dear Tony,

 

I believe it has: the current timers are programmed based on ‘web workers’ which should continue running when a page is in the background. Could you describe what is exactly the issue in your experiment?

 

Lucas

--
You received this message because you are subscribed to the Google Groups "LIONESS Lab help and discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lioness-lab...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/lioness-lab/f823467e-4d8d-4583-af9f-4bdbc8fba12an%40googlegroups.com.

Tony Hua

unread,
Sep 21, 2022, 12:11:44 PM9/21/22
to LIONESS Lab help and discussion
I have a set up where participants enter a lobby and wait for 4 minutes to be matched with another participant.  However, if a participant clicks onto a different tab, the lobby timer seems to pause after around 10 seconds. If a second participant joins, then they will be matched. Interestingly, the time out counter on the normal and quiz stages do not seem to be paused.
Reply all
Reply to author
Forward
0 new messages