roundcubemail/program/lib/Roundcube/rcube.php
public static function print_timer($timer, $label = 'Timer', $dest = 'console')
    {
        static $print_count = 0;

        $print_count++;
        $now  = self::timer();
        $diff = $now - $timer;

        if (empty($label)) {
            $label = 'Timer '.$print_count;
        }

        self::write_log($dest, sprintf("%s: %0.4f sec", $label, $diff));
    }
public static function print_timer($timer, $label = 'Timer', $dest = 'console')
    {
        static $print_count = 0;

        $print_count++;
        $now  = self::timer();
        $diff = $now - $timer;

        if (empty($label)) {
            $label = 'Timer '.$print_count;
        }

        self::write_log($dest, sprintf("%s: %0.4f sec", $label, $diff));
    }
public static function print_timer ( $ timer , $ label = 'Timer' , $ dest = 'console' ) { static $ print_count = 0 ; $ print_count ++ ; $ now = self :: timer ( ) ; $ diff = $ now - $ timer ; if ( empty ( $ label ) ) { $ label = 'Timer ' . $ print_count ; } self :: write_log ( $ dest , sprintf ( "%s: %0.4f sec" , $ label , $ diff ) ) ; }
Logs time difference according to provided timer

@param float  $timer Timer (self::timer() result)
@param string $label Log line prefix
@param string $dest  Log file name

@see self::timer()
Logs time difference according to provided timer