code: private function createTimeElement($time, \DOMDocument $dom)
      {
          $time = round($time / 1000, 3);
  
          $timeXML = $dom->createElement('time');
          $timeXML->setAttribute('unit', 's');
          $timeTotalXML = $dom->createElement('total');
          $timeTotalXML->setAttribute('value', (string) $time);
          $timeXML->appendChild($timeTotalXML);
  
          return $timeXML;
      }
docs: @param float        $time
  @param \DOMDocument $dom
  
  @return \DOMElement