KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/performancepartsinc/main/libraries/domit/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/performancepartsinc/main/libraries/domit/timer.php
<?php

class Timer {
	var $startTime;
	var $stopTime;

	function start() {
		$this->startTime = microtime();
	} //start

	function stop() {
		$this->stopTime = microtime();
	} //stop

	function getTime() {
		return $this->elapsed($this->startTime, $this->stopTime);
	} //getTime

	function elapsed($a, $b) {
		list($a_micro, $a_int) = explode(' ',$a);
		list($b_micro, $b_int) = explode(' ',$b);

		if ($a_int > $b_int) {
			return ($a_int - $b_int) + ($a_micro - $b_micro);
		}
		else if ($a_int == $b_int) {
			if ($a_micro > $b_micro) {
				return ($a_int - $b_int) + ($a_micro - $b_micro);
			}
			else if ($a_micro<$b_micro) {
				return ($b_int - $a_int) + ($b_micro - $a_micro);
			}
			else {
				return 0;
			 }
		}
		else { // $a_int < $b_int
			return ($b_int - $a_int) + ($b_micro - $a_micro);
		}
	} //elapsed
} //Timer

?>

Anon7 - 2021