script for measure the time of script and save result in graphite