SisMaker 4 лет назад
Родитель
Сommit
dff0431a51
1 измененных файлов: 4 добавлений и 4 удалений
  1. +4
    -4
      src/measure/utTc.erl

+ 4
- 4
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").

Загрузка…
Отмена
Сохранить