The influence of affective factors on time perception