diff --git a/makefile b/makefile index b63079b..60f67da 100644 --- a/makefile +++ b/makefile @@ -67,8 +67,15 @@ define measure_time $(2); \ end=$$(date +%s); \ duration=$$((end - start)); \ - echo "$(1): $$duration сек" >> $(TIMING_FILE); \ - echo "$(GREEN)✓ $(1) завершён за $$duration сек$(NC)" + if [ $$duration -ge 60 ]; then \ + min=$$((duration / 60)); \ + sec=$$((duration % 60)); \ + time_str="$${min}m $${sec}s"; \ + else \ + time_str="$${duration}s"; \ + fi; \ + echo "$(1): $$time_str" >> $(TIMING_FILE); \ + echo "$(GREEN)✓ $(1) завершён за $$time_str$(NC)" endef define print_timing_summary