added time measurement in scripts