SOURCE

var t1 = new Date().getTime();
window.onload = function() {
    alert("加载本页耗时 " + (new Date().getTime() - t1)/1000 + "秒")
}
console 命令行工具 X clear

                    
>
console