throw exception if allowed execution time is exceeded