FOF30\Timer\Timer::__construct PHP Méthode

__construct() public méthode

Public constructor, creates the timer object and calculates the execution time limits.
public __construct ( integer $max_exec_time = 5, integer $runtime_bias = 75 ) : Timer
$max_exec_time integer Maximum execution time, in seconds
$runtime_bias integer Runtime bias factor, as percent points of the max execution time
Résultat Timer
    public function __construct($max_exec_time = 5, $runtime_bias = 75)
    {
        // Initialize start time
        $this->start_time = microtime(true);
        $this->max_exec_time = $max_exec_time * $runtime_bias / 100;
    }