uruchamia skrypt php
//place this before any script you want to calculate time
$time_start = microtime(true);
//sample script
for($i=0; $i<1000; $i++){
//do anything
}
$time_end = microtime(true);
$execution_time = ($time_end - $time_start);
echo '<b>Total Execution Time:</b> '.($execution_time*1000).'Milliseconds';
limit czasu php
set_time_limit(120); // Time in seconds
set_time_limit(0); // unlimited
PHP czas skrypt
//place this before any script you want to calculate time
$time_start = microtime(true);
//sample script
for($i=0; $i<1000; $i++){
//do anything
}
$time_end = microtime(true);
$execution_time = ($time_end - $time_start);
echo '<b>Total Execution Time:</b> '.($execution_time*1000).'Milliseconds';
Limit czasu w PHP:
set_time_limit(300);
Limit czasu PHP:
set_time_limit(300);
ustaw limit czasu w wp-config
max_execution_time = 300;