Index: branches/5.2.x/tools/cron.php =================================================================== diff -u -r14092 -r14095 --- branches/5.2.x/tools/cron.php (.../cron.php) (revision 14092) +++ branches/5.2.x/tools/cron.php (.../cron.php) (revision 14095) @@ -1,6 +1,6 @@ /tools/cron.php -O /dev/null > /dev/null 2>&1 // */10 * * * * /usr/bin/php /path/to/site/tools/cron.php - $start = getmicrotime(); + $start = microtime(true); define('CRON', 1); define('ADMIN', 1); @@ -35,15 +35,9 @@ $application->Init(); // events from request are not processed, only predefined regular events - $application->EventManager->RunRegularEvents(reBEFORE, true); - $application->EventManager->RunRegularEvents(reAFTER, true); + $application->EventManager->runAgents(reBEFORE, true); + $application->EventManager->runAgents(reAFTER, true); $application->Done(); - $end = getmicrotime(); - - function getmicrotime() - { - list($usec, $sec) = explode(" ", microtime()); - return ((float)$usec + (float)$sec); - } \ No newline at end of file + $end = microtime(true); \ No newline at end of file