From 7aae7b19dc081cdc1e630406788425eb74bd9d4b Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 20 Nov 2025 00:47:39 +0800 Subject: add timer to progress when building --- xmake/modules/utils/progress.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'xmake/modules/utils/progress.lua') diff --git a/xmake/modules/utils/progress.lua b/xmake/modules/utils/progress.lua index c8846e033..ff97a6d6c 100644 --- a/xmake/modules/utils/progress.lua +++ b/xmake/modules/utils/progress.lua @@ -388,6 +388,11 @@ function show_output(format, ...) end end +-- check if multirow refresh mode is enabled +function is_multirow() + return _is_multirow_refresh() +end + -- refresh the multirow progress display to update elapsed time -- this is useful for long-running tasks to keep the elapsed time updated function refresh() @@ -398,11 +403,6 @@ function refresh() end end --- check if multirow refresh mode is enabled -function is_multirow() - return _is_multirow_refresh() -end - -- abort the progress display mode, used for error exit or early termination -- this function cleans up the progress display area and restores the terminal state function show_abort() -- cgit v1.3.1