Use maximum elapsed time for termination
Change valuable names for elapsed time count