arcjet-js icon indicating copy to clipboard operation
arcjet-js copied to clipboard

Timing functions are still broken

Open blaine-arcjet opened this issue 4 months ago • 0 comments

Even after #1858, there are still bugs with the log.time() and log.timeEnd() calls.

Since we run things async, one protect call might call log.time() and another might call log.timeEnd().

I think we need some unique ID to ensure the timing is correct. Otherwise we'll need to implement timing logic ourselves, using performance.now() and probably returning an end function.

blaine-arcjet avatar Oct 04 '24 18:10 blaine-arcjet