Start timer.

@param string $name
@param null $time
554832
protected function start($name, $time = null)
    {
        $this->started[$name] = $time ?: microtime(true);
    }
289825
public function start($name) {

        if (!isset($this->blocks[$name])){
            $this->blocks[$name] = [];
        }

        \ob_start();
    }
1099465
def start(cls, name):
        
        if cls.debug:
            print("Timer", name, "started ...")
        cls.timer_start[name] = time.time()
572740
public function start($hash = false, $name = false)
    {
        if ($hash) {
            $this->_hash = $hash;
        }

        if ($name) {
            $this->_name = $name;
        }

        if (! empty($this->_id)) {
            $this->restart();
        } else {
            $this->create();
        }
    }
1308510
public function start( $name, $category = null ): StopwatchEvent {
		return $this->stopwatch->start( $name, $category );
	}
292888
public function stopTimer($name)
    {
        if (\in_array($name, $this->timers, true) && (strpos($name, '_') === 0 || $this->enabled())) {
            $this->debugbar['time']->stopMeasure($name);
        }

        return $this;
    }
354772
public function start($key, $label, $data = null, $timetamp = null)
    {
        $event = new Start($key, $label, $data, $timetamp);
        $this->dispatcher->dispatch(Start::EVENT_NAME, $event);
    }
139768
public function start_hook_timer() {
		$this->hook_count++;
		// Timer already running means a subhook has been called
		if ( ! is_null( $this->hook_start_time ) ) {
			$this->hook_depth++;
		} else {
			$this->hook_start_time = microtime( true );
		}
	}
798049
public function setNull($name): void
    {
        if ($this->contains($name) == false) {
            return;
        }

        $this->record[$name] = null;
    }
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;
    }
917109
public function setDay($name, array $time)
    {
        if (is_numeric($name)) {
            if (!array_key_exists($name, $this->_dayMap)) {
                throw new InvalidConfigException("The given day numeric value {$name} is not available in the list of valid day values.");
            }

            $name = $this->_dayMap[$name];
        }

        if (!array_search($name, $this->_dayMap)) {
            throw new InvalidConfigException("The given day {$name} is not in the list of valid day names.");
        }

        foreach ($time as $from => $to) {
            $this->_days[] = "{$name} {$from}-{$to}";
        }
    }
998353
public function setTimer(string $name, $value)
    {
        $this->timers[$name] = (string) $value;
        return $this;
    }
455742
static function init( $time=null )
    {
        if (self::$start == null || $time != null)
        {
            if ($time == null)
            {
                $time = microtime(true);
            }
            self::$start = $time;
        }
        if (self::$hostname == null)
        {
            self::$hostname = gethostname();
        }
        if (self::$script_name == null && isset($_SERVER['SCRIPT_NAME']))
        {
            self::$script_name = $_SERVER['SCRIPT_NAME'];
        }
        if (self::$server_name == null && isset($_SERVER['SERVER_NAME']))
        {
            self::$server_name = $_SERVER['SERVER_NAME'];
        }
        if ( !self::$shutdown_registered )
        {
            self::$shutdown_registered = true;
            register_shutdown_function('pinba::flush');
        }

    }
536404
public function profileStart($name)
    {
        if (!is_string($name) || empty($name)) {
            return;
        }

        $this->_profileStacks[$name] = microtime(true);
    }
1232859
public static function start($name = "default")
  {
    if(array_key_exists($name, self::$timers))
    {
      self::$timers[$name]->start();
    }
    else
    {
      self::$timers[$name] = new TeamSpeak3_Helper_Profiler_Timer($name);
    }
  }
131307
private function start()
    {
        $timer = $this->getStopwatchInstance();
        $timer->start($this->name, $this->category);
    }
1313125
public function setTimeout($time=null)
    {
        if (!is_null($time)) {
           set_time_limit($time)||ini_set("max_execution_time", $time);
        }
        return $this;
    }