Re: max_execution_time

From: Date: Mon, 10 Jul 2000 10:16:28 +0000
Subject: Re: max_execution_time
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-24039@lists.php.net to get a copy of this message
Björn Schotte wrote: > How can I take care of the CPU time the script uses > and do some fall back mechanisms for not to fall into > max_execution_time ? getrusage can find out how much CPU time was already used (although it might not be available on your system) getrusage() will return an array that contaions the field ["ru_utime.tv_sec"] & ["ru_utime.tv_usec"] for user CPU time ["ru_stime.tv_sec"] & ["ru_stime.tv_usec"] for system CPU time _usec stands for microseconds the script is terminated when system and user time sum up to max_execution_time ... -- Hartmut Holzgraefe hartmut@six.de http://www.six.de +49-711-99091-62 fax:-99

« previous php.dev (#24039) next »