From dff0431a517d279f2a09390cfb2d96d61291edd6 Mon Sep 17 00:00:00 2001 From: SisMaker <1713699517@qq.com> Date: Wed, 18 Nov 2020 00:49:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/measure/utTc.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/measure/utTc.erl b/src/measure/utTc.erl index db30c8b..b607f9b 100644 --- a/src/measure/utTc.erl +++ b/src/measure/utTc.erl @@ -36,10 +36,10 @@ ts(LoopTime, M, F, A) -> {Max, Min, Sum, Aver, Greater, Less} = loopTs(LoopTime, M, F, A, LoopTime, 0, 0, 0, []), io:format("=====================~n"), io:format("execute [~p] times of {~p, ~p, ~p}:~n", [LoopTime, M, F, A]), - io:format("MaxTime: ~10s(us) ~10s(s)~n", [integer_to_binary(Max), float_to_binary(Max / 1000000, [{decimals, 6}, compact])]), - io:format("MinTime: ~10s(us) ~10s(s)~n", [integer_to_binary(Min), float_to_binary(Min / 1000000, [{decimals, 6}, compact])]), - io:format("SumTime: ~10s(us) ~10s(s)~n", [integer_to_binary(Sum), float_to_binary(Sum / 1000000, [{decimals, 6}, compact])]), - io:format("AvgTime: ~10s(us) ~10s(s)~n", [integer_to_binary(Aver), float_to_binary(Aver / 1000000, [{decimals, 6}, compact])]), + io:format("MaxTime: ~10s(us) ~10s(s)~n", [float_to_binary(Max, [{decimals, 6}, compact]), float_to_binary(Max / 1000000, [{decimals, 6}, compact])]), + io:format("MinTime: ~10s(us) ~10s(s)~n", [float_to_binary(Min, [{decimals, 6}, compact]), float_to_binary(Min / 1000000, [{decimals, 6}, compact])]), + io:format("SumTime: ~10s(us) ~10s(s)~n", [float_to_binary(Sum, [{decimals, 6}, compact]), float_to_binary(Sum / 1000000, [{decimals, 6}, compact])]), + io:format("AvgTime: ~10s(us) ~10s(s)~n", [float_to_binary(Aver, [{decimals, 6}, compact]), float_to_binary(Aver / 1000000, [{decimals, 6}, compact])]), io:format("Gra: ~10s ~10s(s)~n", [integer_to_binary(Greater), float_to_binary(Greater / LoopTime, [{decimals, 2}]) ++ "%"]), io:format("Less: ~10s ~10s(s)~n", [integer_to_binary(Less), float_to_binary(Less / LoopTime, [{decimals, 2}]) ++ "%"]), io:format("=====================~n").