|
|
@ -75,9 +75,10 @@ cvrTimeUnit(Time, FromUnit, ToUnit) -> |
|
|
|
%% utTc:tm(ProcessesCount, LoopTimes, Module, Function, ArgsList). |
|
|
|
|
|
|
|
doTc(M, F, A) -> |
|
|
|
StartTime = erlang:system_time(nanosecond), |
|
|
|
T1 = erlang:monotonic_time(), |
|
|
|
apply(M, F, A), |
|
|
|
erlang:system_time(nanosecond) - StartTime. |
|
|
|
T2 = erlang:monotonic_time(), |
|
|
|
cvrTimeUnit(T2 - T1, native, nanosecond). |
|
|
|
|
|
|
|
distribution(List, Aver) -> |
|
|
|
distribution(List, Aver, 0, 0). |
|
|
|