Maps the readback buffer, computes timestamps[1] - timestamps[0] (nanoseconds), converts to milliseconds, then destroys all three handles. Returns undefined if ts is null (benchmark mode off).
timestamps[1] - timestamps[0]
undefined
ts
elapsed GPU time in ms
Maps the readback buffer, computes
timestamps[1] - timestamps[0](nanoseconds), converts to milliseconds, then destroys all three handles. Returnsundefinediftsis null (benchmark mode off).