Optimization and time of execution measure