PHP 5.3+ timer and resource monitor