Measure the duration between two previously created marks.
The name of the measurement (appears in performance timeline).
The starting mark name used with mark.
The ending mark name used with mark.
Calls performance.measure(name, startMark, endMark) when enabled and supported. Safe even if marks are missing—any exceptions are caught.
performance.measure(name, startMark, endMark)
mark("op:start");// … work …mark("op:end");measure("op", "op:start", "op:end"); Copy
mark("op:start");// … work …mark("op:end");measure("op", "op:start", "op:end");
Measure the duration between two previously created marks.