script for measuring time of integration