Printing execution times alongside to workers
Publish PHP Package / docker (push) Successful in 5s
Details
Publish PHP Package / docker (push) Successful in 5s
Details
This commit is contained in:
parent
7de6cf61c8
commit
fd876d28e2
|
@ -581,6 +581,7 @@ function _config_worker_func(array $job, array $includes_map, bool $force, bool
|
|||
if(is_callable($CONFIG_INIT_WORKER_FUNC))
|
||||
$CONFIG_INIT_WORKER_FUNC();
|
||||
|
||||
$start_time = microtime(true);
|
||||
list($idx, $files) = $job;
|
||||
if($verbose)
|
||||
echo "Worker $idx (" . sizeof($files) . ") started\n";
|
||||
|
@ -607,7 +608,7 @@ function _config_worker_func(array $job, array $includes_map, bool $force, bool
|
|||
$results[$file] = array($cache_file, $is_stale);
|
||||
}
|
||||
if($verbose)
|
||||
echo "Worker $idx done\n";
|
||||
echo "Worker $idx done (".round(microtime(true)-$start_time, 2)." sec)\n";
|
||||
return $results;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue