Helps log experiments by recording and logging the duration of button presses.