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);
    }