File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 2222 path_belongs_to_site_packages ,
2323)
2424from codeflash .code_utils .git_utils import get_git_diff
25+ from codeflash .code_utils .time_utils import humanize_runtime
2526from codeflash .discovery .discover_unit_tests import discover_unit_tests
2627from codeflash .models .models import FunctionParent
2728from codeflash .telemetry .posthog_cf import ph
@@ -204,8 +205,9 @@ def get_functions_to_optimize(
204205 )
205206 logger .info (f"Found { functions_count } function{ 's' if functions_count > 1 else '' } to optimize" )
206207 if optimize_all :
208+ three_min_in_ns = int (1.8e11 )
207209 logger .info (
208- f"It might take about { functions_count * 3 } minutes to fully optimize this project. Codeflash "
210+ f"It might take about { humanize_runtime ( functions_count * three_min_in_ns ) } to fully optimize this project. Codeflash "
209211 f"will keep opening pull requests as it finds optimizations."
210212 )
211213 return filtered_modified_functions , functions_count
You can’t perform that action at this time.
0 commit comments