небольшие правки
This commit is contained in:
Binary file not shown.
11
makefile
11
makefile
@@ -67,8 +67,15 @@ define measure_time
|
|||||||
$(2); \
|
$(2); \
|
||||||
end=$$(date +%s); \
|
end=$$(date +%s); \
|
||||||
duration=$$((end - start)); \
|
duration=$$((end - start)); \
|
||||||
echo "$(1): $$duration сек" >> $(TIMING_FILE); \
|
if [ $$duration -ge 60 ]; then \
|
||||||
echo "$(GREEN)✓ $(1) завершён за $$duration сек$(NC)"
|
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
|
endef
|
||||||
|
|
||||||
define print_timing_summary
|
define print_timing_summary
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user