time

console.time()

Starts a timer that allows you to track how log an operation takes. Collaborates with timeEnd(), which ends the timer.

ArgumentsDescription
labelA unique string label for this timer. Use the same label to in timeEnd to end timer execution.

Example

console.time("calculations");

var url = "https://www.google.com/#q=hello+world"; // REST API URL
var XHRResponse = XHR2.send("GET", url, {});

console.timeEnd("calculations");
7/11/2016, 10:16:28 AM: calculations: 459ms