Reads the current timer value without stopping the timer.

@param string $name
The name of the timer.

@return int
The current timer value in ms.
175796
static public function read($name) {
    if (isset(static::$timers[$name]['start'])) {
      $stop = microtime(TRUE);
      $diff = round(($stop - static::$timers[$name]['start']) * 1000, 2);

      if (isset(static::$timers[$name]['time'])) {
        $diff += static::$timers[$name]['time'];
      }
      return $diff;
    }
    return static::$timers[$name]['time'];
  }
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;
    }
346088
public function getHeader($name)
    {
        $internalName = strtolower($name);

        if (true === $this->hasHeader($internalName)) {
            $value = $this->headers[$internalName];

        } else {
            $value = null;
        }

        return $value;
    }
1361814
public function getWatch($name = self::STOPWATCH_DEFAULT_NAME)
    {
        if (!array_key_exists($name, $this->timers)) {
            throw new \InvalidArgumentException('Watch ' . $name . ' does not exist.');
        }

        return $this->timers[$name];
    }
1366472
private function read($name, $default = 0)
    {
        if (null === $seq = $this->find($name)) {
            return $this->init($name, $default);
        }

        $this->_em->refresh($seq);
        return $seq->getValue();
    }
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;
	}
307378
public static function getValue(string $name)
    {
        $enumerables = self::getCache();

        if (!array_key_exists($name, $enumerables)) {
            throw EnumerableException::nameInvalid($name);
        }

        return $enumerables[$name];
    }
694724
public function getReader($name)
    {
        if (!$this->hasReader($name)) {
            throw new \OutOfBoundsException(sprintf('Undefined reader "%s"', $name));
        }

        return $this->readers[$name];
    }
972709
public function get($name) {
        N('cache_read',1);
        $name   =   $this->options['prefix'].$name;
        return wincache_ucache_exists($name)? wincache_ucache_get($name) : false;
    }
1293474
protected function resolveTimerFromName(string $name = null): TimerContract
    {
        $id = \is_null($name) ? \uniqid() : $name;

        if (isset($this->timers[$id])) {
            return $this->timers[$id];
        }

        return $this->createTimer($name, constant('LARAVEL_START'));
    }
1274202
protected function getCurrentStability($name)
    {
        return isset($this->stabilityFlags[$name]) ?
            $this->stabilityFlags[$name] : null;
    }
1075763
public function getIntValue($name):?int
    {
        $value = $this->offsetGet($name);
        if (is_null($value)) {
            return null;
        }

        return (int)$value;
    }
478081
private function getStatValue($name)
    {
        if (isset($this->_extra[self::ENTRY_STATS][$name])) {
            return $this->_extra[self::ENTRY_STATS][$name];
        }

        return 0;
    }
1098104
public function getStatus($name = '') {
        if ($name != '') {
            if (isset($this->_events[$name])) {
                return $this->_events[$name]->getStatus();
            }
            else {
                return false;
            }
        }
        else {
            return false;
        }
    }
665307
public static function Read ($name) {
		static::Start();
		if (!static::IsSessionActive()) {
			throw CoreException::RaiseSystemError('セッションが開始されていないため、セッションを利用できません。');
		}
		if (is_array($name)) {
			return Arrays::GetLowest($_SESSION, $name);
		} else {
			return isset($_SESSION[$name]) ? $_SESSION[$name] : null;
		}
	}
1300111
public function check($name)
    {
        if (array_key_exists($name, static::$marks)) {
            return number_format((microtime(true) - static::$marks[$name]) * 1000, 2);
        }

        return 0.0;
    }
228655
public function cacheGet($name) {
    /* Do cache garbage collection. */
    $this->cacheGc();

    try {
      $data = $this->store->read('cache', $this->cacheId($name));
    } catch (\phpSec\Exception $e) {
      return false;
    }
    if($data ==! false) {
      if($data['ttl'] > time()) {
        return unserialize($data['data']);
      }
      $this->store->delete('cache', $this->cacheId($name));
    }
    return false;
  }