in reply to Run a script multiple times and store the running time

Just a wild guess from looking at your question: perhaps what you're really looking for is a module such as Benchmark.
  • Comment on Re: Run a script multiple times and store the running time