You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As part of Yokohama release the problem of logging and calculating time taken by a piece of script has been addressesed by bringing standardized timing tools to the platform, enabling precise performance analysis with minimal effort and developers can isolate slow operations.
4
+
5
+
Use Case: Query overall incident record and bulk update with specific values. Need time taken for query and update.
6
+
7
+
8
+
console.time(label)
9
+
Starts a timer with a unique label. Use this at the beginning of a code block you want to measure.
10
+
11
+
console.timeLog(label, [data])
12
+
Logs the current duration of the timer without stopping it. Optional data can be appended for context.
13
+
14
+
console.timeEnd(label)
15
+
Stops the timer and logs the total execution time.
0 commit comments