$elapsed = Measure-Command { Invoke-RestMethod -Uri "https://api.exemple.com/data" -Method Get } "{0:mm\:ss\.fff}" -f $elapsed