Call the getrusage function in Linux.
Call the getrusage function in Linux
Function Description:Obtain process-related resource information. For example, user overhead time, system overhead Time, and received semaphore;
Usage:# Include # include #
Declaration:int getrusage (int who, struct rusage *usage); The Getrusage function returns the current resource usage. Returns the resource usage for the current process when the WHO parameter is rusage_self, and returns the resource used by the
PHP developers should be aware that PHP has a lot of built-in functions, mastered them, can help you in doing PHP development more handy, this article will share 8 development of the necessary PHP features, all are very practical, I hope you can
Error_log: Send out an error message.
Error_reporting: Configure the level of error message return.
GETENV: Get the environment variable of the system
Get_cfg_var: Gets the configuration option value for PHP.
Get_current_user: Gets the name of the
1. Any number of parameters of the function
You may know that PHP allows you to define a function of a default parameter. But you may not know that PHP also allows you to define a function of an entirely arbitrary parameter
Here is an example of a
8 PHP Programmers Common features Summary, PHP Programmer Summary
Developers who have done PHP development should be aware that PHP has a lot of built-in features, mastered them, can help you in the development of PHP more handy, this article will
1. Any number of parameters of the Function
You may know that PHP allows you to define a default parameter function. But you may not know that PHP also allows you to define a function with all arbitrary parameters.
The following example shows the
Summary of nine common functions and functions for PHP Development. For more information about php learning, see.
1. any number of parameters of the function
You may know that PHP allows you to define a default parameter function. But you may not
Summary of nine common functions and functions for PHP Development. For more information about php learning, see.
1. any number of parameters of the function
You may know that PHP allows you to define a default parameter function. But you may not
Develop eight essential PHP functions. Programmers who have developed PHP should be clear that PHP has many built-in functions and can master them to help you better develop PHP, this article will share eight essential PHP Development programmers
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.