如何检查我的exec()
脚本已经运行了多长时间?输出会是这样的:脚本运行了多长时间?
1 Day(s) 2 hours 23 minutes 12 seconds
我不希望它输出的更多然后在60秒这样的
1 Day(s) 2 hours 23 minutes 118 seconds
我的代码:
$start = time();
$s = time() - $start;
$m = floor($s/60);
$h = floor($m/60);
$msg = "script running for approx: Seconds - $s | Minutes - $m | Hours - $h";
echo $msg;
http://pastebin.com/13gZdbA6花 – user1691356
你永远不会调用'高管的具体金额()'在你的脚本中。 – Barmar