небольшие правки
This commit is contained in:
11
makefile
11
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
|
||||
|
||||
Reference in New Issue
Block a user