console.time () and console.timeEnd () can print the execution time of the program.
(function(){
    console.time("index");
    var div = document.getElementById("div");
    div.onclick = function(){
        alert("123");
    };
    console.timeEnd("index");
}());question: why is the time printed when it is not clicked?
