grpc.testing.ServerStats */ class ServerStats extends \Google\Protobuf\Internal\Message { /** *
* wall clock time change in seconds since last reset ** *
double time_elapsed = 1;
*/
private $time_elapsed = 0.0;
/**
* * change in user time (in seconds) used by the server since last reset ** *
double time_user = 2;
*/
private $time_user = 0.0;
/**
* * change in server time (in seconds) used by the server process and all * threads since last reset ** *
double time_system = 3;
*/
private $time_system = 0.0;
/**
* * change in total cpu time of the server (data from proc/stat) ** *
uint64 total_cpu_time = 4;
*/
private $total_cpu_time = 0;
/**
* * change in idle time of the server (data from proc/stat) ** *
uint64 idle_cpu_time = 5;
*/
private $idle_cpu_time = 0;
public function __construct() {
\GPBMetadata\Src\Proto\Grpc\Testing\Stats::initOnce();
parent::__construct();
}
/**
* * wall clock time change in seconds since last reset ** *
double time_elapsed = 1;
*/
public function getTimeElapsed()
{
return $this->time_elapsed;
}
/**
* * wall clock time change in seconds since last reset ** *
double time_elapsed = 1;
*/
public function setTimeElapsed($var)
{
GPBUtil::checkDouble($var);
$this->time_elapsed = $var;
}
/**
* * change in user time (in seconds) used by the server since last reset ** *
double time_user = 2;
*/
public function getTimeUser()
{
return $this->time_user;
}
/**
* * change in user time (in seconds) used by the server since last reset ** *
double time_user = 2;
*/
public function setTimeUser($var)
{
GPBUtil::checkDouble($var);
$this->time_user = $var;
}
/**
* * change in server time (in seconds) used by the server process and all * threads since last reset ** *
double time_system = 3;
*/
public function getTimeSystem()
{
return $this->time_system;
}
/**
* * change in server time (in seconds) used by the server process and all * threads since last reset ** *
double time_system = 3;
*/
public function setTimeSystem($var)
{
GPBUtil::checkDouble($var);
$this->time_system = $var;
}
/**
* * change in total cpu time of the server (data from proc/stat) ** *
uint64 total_cpu_time = 4;
*/
public function getTotalCpuTime()
{
return $this->total_cpu_time;
}
/**
* * change in total cpu time of the server (data from proc/stat) ** *
uint64 total_cpu_time = 4;
*/
public function setTotalCpuTime($var)
{
GPBUtil::checkUint64($var);
$this->total_cpu_time = $var;
}
/**
* * change in idle time of the server (data from proc/stat) ** *
uint64 idle_cpu_time = 5;
*/
public function getIdleCpuTime()
{
return $this->idle_cpu_time;
}
/**
* * change in idle time of the server (data from proc/stat) ** *
uint64 idle_cpu_time = 5;
*/
public function setIdleCpuTime($var)
{
GPBUtil::checkUint64($var);
$this->idle_cpu_time = $var;
}
}