Measuring execution time
Batch and interactive mode