Source for file ExecutionTime.php
Documentation is available at ExecutionTime.php
class PHP_Shell_Extensions_ExecutionTime implements PHP_Shell_Extension {
protected $show_exectime = false;
public function register () {
$opt = PHP_Shell_Options ::getInstance ();
$opt->registerOption ("exectime", $this, "optSetExecTime");
public function optSetExecTime ($key, $val) {
$this->show_exectime = true;
$this->show_exectime = false;
printf(":set %s failed, unknown value. Use :set %s = (on|off)", $key, $key);
public function startParseTime () {
public function startExecTime () {
public function stopTime () {
public function getParseTime () {
return ($this->exec_time == 0.0 ? $this->end_time : $this->exec_time) - $this->parse_time;
public function getExecTime () {
return ($this->exec_time == 0.0 ? 0.0 : $this->end_time - $this->exec_time);
public function isShow () {
return $this->show_exectime;
Documentation generated on Mon, 11 Mar 2019 14:40:32 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|