2011-08-30 43 views

回答

1
$start = microtime(true); 
system(....); 
$end = microtime(true); 

echo "system() call took ", $end - $start, " microseconds"; 

对于剩下的,看看shell_exec() timeout management & exec()

+0

这实际上得到系统经过多长时间()带着跑。我正在寻找系统()正在运行多长时间的计数器,可以说它是否超出了我设置的时间。 –

+0

阅读我发布的链接。 –