From 7aa0508a849c357892fae0eb5f43dc0688c10c2c Mon Sep 17 00:00:00 2001 From: sylvain-morin Date: Thu, 15 Feb 2024 13:53:33 +0100 Subject: [PATCH] Test --- lib/inat_vision_api.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/inat_vision_api.py b/lib/inat_vision_api.py index 1fd4186..d0dfc12 100644 --- a/lib/inat_vision_api.py +++ b/lib/inat_vision_api.py @@ -74,6 +74,7 @@ def h3_04_bounds_route(self): def bench_route(self): start = int(request.args["start"]) count = int(request.args["count"]) + delay = int(request.args["delay"]) self.inferrer.TIME_DOWNLOAD = 0 self.inferrer.TIME_RESIZE = 0 self.inferrer.TIME_TOTAL = 0 @@ -88,6 +89,8 @@ def bench_route(self): form.aggregated.data = "false" form.geomodel.data = "true" geomodel = form.geomodel.data + + time.sleep(delay) print("TIME-EXP: #" + TOTAL_OBS) print("TIME-EXP: score " + observation_id)