diff roundup/rest.py @ 7683:b04e222501b8

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.
author John Rouillard <rouilj@ieee.org>
date Wed, 25 Oct 2023 13:12:18 -0400
parents 5b3ecdfd77f7
children 3eca3462ba0c
line wrap: on
line diff
--- a/roundup/rest.py	Wed Oct 25 09:45:58 2023 -0400
+++ b/roundup/rest.py	Wed Oct 25 13:12:18 2023 -0400
@@ -433,7 +433,7 @@
         self.db = db
         self.translator = client.translator
         # record start time for statistics reporting
-        self.start = time.time()
+        self.start = client.start
         # disable stat reporting by default enable with @stats=True
         # query param
         self.report_stats = False

Roundup Issue Tracker: http://roundup-tracker.org/