Stops time for timer with given name
@param string [optional] $strName Timer name
@return float Timer's time
@throws Caller
198619
public static function stop($strName = 'default')
    {
        $objTimer = static::getTimerInstance($strName, false);
        if ($objTimer) {
            return $objTimer->stopTimer();
        } else {
            throw new Caller('Timer with name ' . $strName . ' was not started, cannot stop it');
        }
    }
1265821
protected static function _ParseTime ($name) {
		if (!isset(static::$_stopwatchLog[$name])) {
			return null;
		}
		$log = static::$_stopwatchLog[$name];
		$ret = array();
		if (isset($log['start'])) {
			$ret['start'] = sprintf('%F', $log['start']);
		}
		if (isset($log['split']) && is_array($log['split'])) {
			foreach ($log['split'] as $split) {
				$ret['split'][] = sprintf('%F', $split);
			}
		}
		if (isset($log['stop'])) {
			$ret['stop'] = sprintf('%F', $log['stop']);
		}
		return $ret;
	}
999230
private function checkNameHour(string $time)
    {
        if (preg_match('/\s*\d{1,2}\s*(h|hour|hora|hs|hr|hrs)\s*/i', $time)) {
            $this->setCerteza("h", $time);
        }

        if (preg_match('/\s*\d{1,2}\s*(m|min|minuto)\s*/i', $time)) {
            $this->setCerteza("i", $time);
        }

        if (preg_match('/\s*\d{1,2}\s*(s|seg|segundo)\s*/i', $time)) {
            $this->setCerteza("s", $time);
        }
    }
799281
public static function Stop ($name = null) {
		$name = (is_null($name)) ? \ickx\fw2\core\log\Caller::GetClassMethod() : $name;
		return static::$_stopwatchLog[$name]['stop'] = microtime(true);
	}
849725
public static function timer(string $name = null): float
    {
        static $time = [];
        $now = \microtime(true);
        $delta = isset($time[$name]) ? $now - $time[$name] : 0;
        $time[$name] = $now;

        return $delta;
    }
892594
function stop($id = null)
        {
            # if no $id name is sent call it '~stopped'
            if ($id == null) {
                $id = '~stopped';
            }

            # enter a stop interval time
            $this->get($id);

            # sum all intervals
            $tot = 0;
            foreach ($this->intervals as $t) {
                $tot += $t;
            }

            # make a total time entry in the array
            $this->addInterval("~total time", $tot);

            # return the complete array
            return $this->allIntervals();
        }
621013
public function incrementTimer($name, $time) {
        if (!isset($this->timers[$name])) {
            $this->timers[$name] = 0;
        }
        $this->timers[$name] += $this->getTime() - $time;
    }
660061
public function stop() : void
    {
        if ($this->startTime === null) {
            return;
        }

        $endTime = $this->clock->getTime();
        $duration = Duration::between($this->startTime, $endTime);

        $this->duration = $this->duration->plus($duration);
        $this->startTime = null;
    }
165265
protected function pluralize($strName)
    {
        // Special Rules go Here
        switch (true) {
            case (strtolower($strName) == 'play'):
                return $strName . 's';
        }

        $intLength = strlen($strName);
        if (substr($strName, $intLength - 1) == "y") {
            return substr($strName, 0, $intLength - 1) . "ies";
        }
        if (substr($strName, $intLength - 1) == "s") {
            return $strName . "es";
        }
        if (substr($strName, $intLength - 1) == "x") {
            return $strName . "es";
        }
        if (substr($strName, $intLength - 1) == "z") {
            return $strName . "zes";
        }
        if (substr($strName, $intLength - 2) == "sh") {
            return $strName . "es";
        }
        if (substr($strName, $intLength - 2) == "ch") {
            return $strName . "es";
        }

        return $strName . "s";
    }
1103993
private long stop(long time, String name){
		m_total.stop(time);
		TimerGroupItem timer = m_timers.get(getName(name));
		long elapsedTime = 0;
		if (timer != null){
			elapsedTime = timer.stop(time);
		}
		checkLog(time);
		return elapsedTime;
	}
1110513
public static function subtractMinute($ts = null, $num = 1)
	{
		return sfTime::subtract($ts, $num, sfTime::MINUTE);
	}
531443
function stop(){
		if( $this->is_running() ){
			$this->stopped = microtime( false );
			return $this->milliseconds();
		}
		else{
			trigger_error("Timer already stopped", E_USER_NOTICE);
			return false;
		}
	 }
1004063
protected function getTimer($key)
    {
        if (!$this->isExists($key)) {
            throw new TimerNotFoundException('Timer not found: ' . $key);
        }

        return $this->timers[$key];
    }
1110589
public function autoclose($time=2000)
    {
        unset($this->params['timer']);

        if ($time !== false) {
            $this->params['timer'] = (int)$time;
        }

        return $this;
    }
1218937
public function stop() {
		$temp['section'] = $this->section;

		// set start value for system + user time
		if (function_exists('getrusage')) {
			$use = getrusage();
			$user   = sprintf('%6d.%06d', $use['ru_utime.tv_sec'], $use['ru_utime.tv_usec']);
			$system = sprintf('%6d.%06d', $use['ru_stime.tv_sec'], $use['ru_stime.tv_usec']);
			$proctime_end = $user+$system;
			$temp['proctime'] = $proctime_end - $this->proctime;
		} else {
			$temp['proctime'] = 'n/a';
		}

		$realtime_end = microtime(true);
		$temp['realtime'] = $realtime_end - $this->realtime;

		if (function_exists('memory_get_usage')) $temp['mem'] = memory_get_usage();
		else $temp['mem'] = 'n/a';

		$this->data[] = $temp;
		$this->active	= false;
	}
1149398
public function stop($key, $timetamp = null)
    {
        $event = new End($key, $timetamp);
        $this->dispatcher->dispatch(End::EVENT_NAME, $event);
    }
15664
public void stopTime() {
    this.elapsedTime = System.currentTimeMillis() - this.startTime;
    this.elapsedCpuTime = (ManagementFactory.getThreadMXBean().getCurrentThreadCpuTime() - this.startCpuTime)/1000000;
  }