Code: Select all
function getTime() {
return microtime();
}
function getDifference($time1, $time2) {
$this->lastRun = $time2 - $time1;
return $this->lastRun;
}
function runCode() {
$time1 = $this->getTime();
exec($this->code);
$time2 = $this->getTime();
$this->addTime($this->getDifference($time1, $time2));
}Any idea what could be causing this? Could it be my laptops computing abilities are not fast enough?