public function getDuration(int $precision = -1)
    {
        //var_dump($this->duration);
        $duration = $this->duration ?? microtime(true) - $this->startTime;
        return $this->fmtDuration($duration, $precision);
    }