<?
    class timers{
        var $startTime;
        /*
            Function/class: starttiming(){}
             Discription: This function will set the start time of the debug timer
            Usage:
                $class->starttiming();
         */
        function starttiming(){
            $this->startTime = substr(microtime(), 11) . "." . substr(microtime(), 2, 8);
        }
    
        /*
            Function/class: stoptiming(){}
             Discription: This function will stop the debug timer and result the time output
            Usage:
                $class->stoptiming();
         */
        function stoptiming(){
                $endTime = substr(microtime(), 11) . "." . substr(microtime(), 2, 8);
            return(($endTime - $this->startTime));
        }
    }
?>