Explorar el Código

rf: 代码整理

SisMaker hace 4 años
padre
commit
759cbb277d
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. +3
    -2
      src/measure/utTc.erl

+ 3
- 2
src/measure/utTc.erl Ver fichero

@ -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).

Cargando…
Cancelar
Guardar