- added 3rd argument to rcube_print_time()

release-0.6
alecpl 16 years ago
parent d559cba5f7
commit 8bc018a72f

@ -1034,7 +1034,7 @@ function rcube_timer()
/**
* @access private
*/
function rcube_print_time($timer, $label='Timer')
function rcube_print_time($timer, $label='Timer', $dest='console')
{
static $print_count = 0;
@ -1045,7 +1045,7 @@ function rcube_print_time($timer, $label='Timer')
if (empty($label))
$label = 'Timer '.$print_count;
console(sprintf("%s: %0.4f sec", $label, $diff));
write_log($dest, sprintf("%s: %0.4f sec", $label, $diff));
}

Loading…
Cancel
Save