Skip to content

Commit 0319803

Browse files
committed
Update codeflash_wrap_decorator.py
1 parent aa872b5 commit 0319803

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

codeflash/code_utils/codeflash_wrap_decorator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ async def async_wrapper(*args: Any, **kwargs: Any) -> Any: # noqa: ANN401
232232
)
233233

234234
exception = None
235+
counter = time.perf_counter_ns()
235236
gc.disable()
236237
try:
237238
ret = func(*args, **kwargs) # coroutine creation has some overhead, though it is very small
@@ -296,6 +297,7 @@ async def async_wrapper(*args: Any, **kwargs: Any) -> Any: # noqa: ANN401
296297
print(f"!$######{test_stdout_tag}######$!")
297298

298299
exception = None
300+
counter = time.perf_counter_ns()
299301
gc.disable()
300302
try:
301303
ret = func(*args, **kwargs)

0 commit comments

Comments
 (0)