update method
calculate execution time