From 6cab7fa9b54b9fa1cbbb3282ef54c31e97ec2f01 Mon Sep 17 00:00:00 2001 From: Shawn Carere <37197312+scarere@users.noreply.github.com> Date: Tue, 29 Oct 2024 13:57:15 -0400 Subject: [PATCH] Elapsed time was backwards --- fl4health/server/base_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fl4health/server/base_server.py b/fl4health/server/base_server.py index 0d4125db9..afcfac1b6 100644 --- a/fl4health/server/base_server.py +++ b/fl4health/server/base_server.py @@ -106,7 +106,7 @@ def fit(self, num_rounds: int, timeout: Optional[float]) -> Tuple[History, float end_time = datetime.datetime.now() self.reports_manager.report( { - "fit_elapsed_time": str(start_time - end_time), + "fit_elapsed_time": str(end_time - start_time), "fit_end": str(end_time), "num_rounds": num_rounds, "host_type": "server", @@ -453,7 +453,7 @@ def fit(self, num_rounds: int, timeout: Optional[float]) -> Tuple[History, float end_time = datetime.datetime.now() self.reports_manager.report( { - "fit_elapsed_time": str(start_time - end_time), + "fit_elapsed_time": str(end_time - start_time), "fit_end": str(end_time), "num_rounds": num_rounds, "host_type": "server",