我要测量iframe的加载时间
我尝试使用异步等待,但这不起作用
mesureLoadTime = async function()
{
this.StartTime = new Date().getTime();
this.content = await this.sanitizer.bypassSecurityTrustResourceUrl('https://www.example.com')
this.EndTime = new Date().getTime();
this.loadTime = (this.EndTime - this.StartTime)/ 1000
}