This is the task script to collect data on time perception under threat of unpredictable shock. It was coded using the cogent toolbox in matlab. For more details see the primary project description and the preregistration document: https://osf.io/54qfh