console.time("reticulating splines");
reticulateSplines();
console.timeLog("reticulating splines");
// reticulating splines: 650msconsole: timeLog() static method / notebook
console: timeLog() static method
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
console.time();
reticulateSplines();
console.timeLog();
// default: 780msconsole.time("default");
reticulateSplines();
console.timeLog();
// default: 780msconsole.time();
reticulateSplines();
console.timeLog("default", "Hello", "world");
// default: 780ms Hello worldconsole.time("answer time");
alert("Click to continue");
console.timeLog("answer time");
alert("Do a bunch of other stuff…");
console.timeEnd("answer time");