yii\mongodb\Migration::endProfile PHP Method

endProfile() protected method

Marks the end of a code block for profiling.
Since: 2.1.1
protected endProfile ( string $token )
$token string token for the code block.
    protected function endProfile($token)
    {
        if (isset($this->profileTokens[$token])) {
            $time = microtime(true) - $this->profileTokens[$token];
            unset($this->profileTokens[$token]);
        } else {
            $time = 0;
        }
        $this->log(" done (time: " . sprintf('%.3f', $time) . "s)\n");
    }