From b6e99051556c252e1b1edf37906c11a343d36ad3 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 18 Sep 2018 16:24:32 +0200 Subject: [PATCH] Display time span during capture in capture utility. --- capture/src/capture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capture/src/capture.cpp b/capture/src/capture.cpp index de5ac9d8..32656ace 100644 --- a/capture/src/capture.cpp +++ b/capture/src/capture.cpp @@ -173,7 +173,7 @@ int main( int argc, char** argv ) { printf( "\33[2K\r\033[36;1m%7.2f Mbps", mbps ); } - printf( " \033[0m /\033[36;1m%5.1f%% \033[0m=\033[33;1m%7.2f Mbps \033[0m| Mem: \033[31;1m%.2f MB\033[0m", compRatio * 100.f, mbps / compRatio, tracy::memUsage.load( std::memory_order_relaxed ) / ( 1024.f * 1024.f ) ); + printf( " \033[0m /\033[36;1m%5.1f%% \033[0m=\033[33;1m%7.2f Mbps \033[0m| Mem: \033[31;1m%.2f MB\033[0m | \033[33mTime: %s\033[0m", compRatio * 100.f, mbps / compRatio, tracy::memUsage.load( std::memory_order_relaxed ) / ( 1024.f * 1024.f ), TimeToString( worker.GetLastTime() - worker.GetTimeBegin() ) ); fflush( stdout ); std::this_thread::sleep_for( std::chrono::milliseconds( 100 ) );