public static function stop()
    {

        //Get usage data
        $now = microtime(true);
        $speed = number_format(1000 * ($now - static::$time), 2);
        $_memory = memory_get_usage();
        $units = array('Bytes', 'KB', 'MB', 'GB', 'TB', 'PB');
        $memory = @round($_memory / pow(1024, ($i = floor(log($_memory, 1024)))), 2) . ' ' . $units[$i];
        $queries = '0';
        //Get Query usage
        //@TODO this smells, a method to detect that the database has been installed;
        $installed = (bool)\Library\Config::getParam("installed", FALSE, "database");

        if ($installed):

            $database = \Library\Database::getInstance();
            $queries = $database->getTotalQueryCount();

        endif;

        //Log usage
        self::log($now, _t("Stop execution time"), "info");

        $output = \Library\Output::getInstance();
        $showMessage = \Library\Config::getParam("mode", 1, "environment");
        if ((int)$showMessage < 2) {
            $output = \Library\Output::getInstance();
            $output->set("debug", array("displaylog" => true));
            $output->set("debug", array("queries" => $queries));
            $output->set("debug", array("log" => static::$log));
        }
        //Set the debugger output
        $output->set("debug", array("start" => static::$time));
        $output->set("debug", array("stop" => $now));
        $output->set("debug", array("speed" => $speed));
        $output->set("debug", array("memory" => $memory));

        //Library\Date::difference($now, $speed);
        //print_R(static::getInstance());


    }