소스 검색

rf: 代码整理

SisMaker 4 년 전
부모
커밋
759cbb277d
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. +3
    -2
      src/measure/utTc.erl

+ 3
- 2
src/measure/utTc.erl 파일 보기

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

불러오는 중...
취소
저장