Location: PHPKode > scripts > TX class > tx-class/timer.class.php
<?php
// time executing ... done by ]: NeTMaN|aK :[ NetBugs Inc. Production
class TX
{
var $starttime;
var $stoptime;
    function start()
    {
        $this->starttime=explode(" ", microtime());
    }
    function stop()
    {
        $this->stoptime=explode(" ", microtime());
    }
    function get_time()
    {
        $seconds=$this->stoptime[1]-$this->starttime[1];
        $micros=$this->stoptime[0]-$this->starttime[0];
        return $totaltime = number_format($seconds+$micros, 7);
    }
}
?>
Return current item: TX class