from otree.api import * import time class C(BaseConstants): NAME_IN_URL = 'gbat_fallback_smaller_group_part0' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): waiting_time = models.IntegerField() class MyPage(Page): @staticmethod def before_next_page(player: Player, timeout_happened): participant = player.participant participant.wait_page_arrival = time.time() print(participant.wait_page_arrival) page_sequence = [MyPage]