src/Timer.php
private function replace($pattern, $precision, $format)
    {
        $time = round($this->time, $precision);
        $value = substr(number_format($time - floor($time), $precision), 2);
        return str_replace($pattern, $value, $format);
    }
private function replace($pattern, $precision, $format)
    {
        $time = round($this->time, $precision);
        $value = substr(number_format($time - floor($time), $precision), 2);
        return str_replace($pattern, $value, $format);
    }
private function replace ( $ pattern , $ precision , $ format ) { $ time = round ( $ this -> time , $ precision ) ; $ value = substr ( number_format ( $ time - floor ( $ time ) , $ precision ) , 2 ) ; return str_replace ( $ pattern , $ value , $ format ) ; }
Replace the date format with calculated values.

@param string $pattern
@param int $precision
@param string $format
@return string
Replace the date format with calculated values .