library/Rediska/Profiler.php
public function getTotalElapsedTime($decimals = null)
    {
        $totalElapsedTime = 0;
        foreach ($this->getProfiles() as $profile) {
            if ($profile->hasStopped()) {
                $totalElapsedTime += $profile->getElapsedTime();
            }
        }

        if ($decimals) {
            return number_format($totalElapsedTime, $decimals);
        } else {
            return $totalElapsedTime;
        }
    }
public function getTotalElapsedTime($decimals = null)
    {
        $totalElapsedTime = 0;
        foreach ($this->getProfiles() as $profile) {
            if ($profile->hasStopped()) {
                $totalElapsedTime += $profile->getElapsedTime();
            }
        }

        if ($decimals) {
            return number_format($totalElapsedTime, $decimals);
        } else {
            return $totalElapsedTime;
        }
    }
Get total elapsed time

@param integer[optional] $decimals
@return integer