for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/***************************************************************************
* For license information see doc/license.txt
*
* Unicode Reminder メモ
* Exact time mesurement
***************************************************************************/
class CBench
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
public $start;
public $stop;
public function CBench()
__construct()
$this->start = 0;
$this->stop = 0;
}
public function getmicrotime()
list($usec, $sec) = explode(' ', microtime());
return ((float)$usec + (float)$sec);
public function start()
$this->start = $this->getmicrotime();
public function stop()
$this->stop = $this->getmicrotime();
public function diff()
$result = $this->stop - $this->start;
return $result;
public function runTime()
$result = $this->getmicrotime() - $this->start;
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.