Skip to content

Commit 93a4d61

Browse files
committed
fix: rest - set self.start from client.start
Make elasped time include time since client was initialized. So elapsed is as close as we can get to an overall request service time. May need to add rest_elapsed or some other subsystem based timers as we try to track a possible performance regression in 2.3.0.
1 parent d9a7eab commit 93a4d61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roundup/rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ def __init__(self, client, db):
433433
self.db = db
434434
self.translator = client.translator
435435
# record start time for statistics reporting
436-
self.start = time.time()
436+
self.start = client.start
437437
# disable stat reporting by default enable with @stats=True
438438
# query param
439439
self.report_stats = False

0 commit comments

Comments
 (0)