Location: PHPKode > projects > AppForMap > appformap/includes/timer.php
<?php
class BC_Timer{
var $stime;
var $etime;

function get_microtime(){
$tmp=split(" ",microtime());
$rt=$tmp[0]+$tmp[1];
return $rt;
}

function start_time(){
$this->stime = $this->get_microtime();
}

function end_time(){
$this->etime = $this->get_microtime();
}

function elapsed_time(){
return ($this->etime - $this->stime);
}
}
?>
Return current item: AppForMap