Measure setup and run time of main