<html>
<head>
<script>
const inputText = `
sortie
`;
const timeValues = inputText.match(/time=(\d+(\.\d+)?)\s*ms/g);
if (timeValues) {
const averageValue = calculateAverage(timeValues);
document.write(averageValue);
}
function calculateAverage(values) {
const numbers = values.map(val => parseFloat(val.match(/\d+(\.\d+)?/)[0]));
const sum = numbers.reduce((acc, num) => acc + num, 0);
const average = (sum / numbers.length).toFixed(2);
return average;
}
</script>
</head>
<body></body>
</html>