Skip to content

Commit

Permalink
Wrong comment
Browse files Browse the repository at this point in the history
  • Loading branch information
TeachMeTW committed Oct 15, 2024
1 parent bc9f638 commit f814102
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions emission/tests/funcTests/TestFunctionTiming.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def execute_and_time_function(self, func: t.Callable[[], bool]):
result = func() # Execute the test function

elapsed_seconds = timer.elapsed # Accessing the float attribute directly
elapsed_ms = (elapsed_seconds * 1000) # Convert to milliseconds and round to nearest integer
elapsed_ms = (elapsed_seconds * 1000) # Convert to milliseconds

# Store the execution time
sdq.store_dashboard_time(
Expand Down Expand Up @@ -133,7 +133,7 @@ def execute_and_time_function(self, func: t.Callable[[], bool]):
except Exception as e:
# Even if the function fails, capture the elapsed time up to the exception
elapsed_seconds = timer.elapsed if 'timer' in locals() else 0 # Accessing the float attribute directly
elapsed_ms = (elapsed_seconds * 1000) # Convert to milliseconds and round to nearest integer
elapsed_ms = (elapsed_seconds * 1000) # Convert to milliseconds

# Store the error timing
sdq.store_dashboard_error(
Expand Down

0 comments on commit f814102

Please sign in to comment.