Behavior/ShowRuntimeBehavior.php
public function run(&$content)
    {
        if (C('SHOW_RUN_TIME')) {
            if (false !== strpos($content, '{__NORUNTIME__}')) {
                $content = str_replace('{__NORUNTIME__}', '', $content);
            } else {
                $runtime = $this->showTime();
                if (strpos($content, '{__RUNTIME__}')) {
                    $content = str_replace('{__RUNTIME__}', $runtime, $content);
                } else {
                    $content .= $runtime;
                }
            }
        } else {
            $content = str_replace(['{__NORUNTIME__}', '{__RUNTIME__}'], '', $content);
        }
    }
public function run(&$content)
    {
        if (C('SHOW_RUN_TIME')) {
            if (false !== strpos($content, '{__NORUNTIME__}')) {
                $content = str_replace('{__NORUNTIME__}', '', $content);
            } else {
                $runtime = $this->showTime();
                if (strpos($content, '{__RUNTIME__}')) {
                    $content = str_replace('{__RUNTIME__}', $runtime, $content);
                } else {
                    $content .= $runtime;
                }
            }
        } else {
            $content = str_replace(['{__NORUNTIME__}', '{__RUNTIME__}'], '', $content);
        }
    }
执行入口

@param mixed $content