C# 클래스 Aspectacular.Test.RunCounter

파일 보기 프로젝트 열기: vgribok/Aspectacular 1 사용 예제들

공개 메소드들

메소드 설명
Spin ( long millisecondsToRun, System.Action funcToTest ) : long

Counts how many time certain function was executed in a given time span.

SpinParallel ( long millisecondsToRun, System.Action funcToTest ) : long

Runs given function in parallel on multiple tasks. Number of tasks spawned matches number of logical processors.

SpinParallelPerSec ( long millisecondsToRun, System.Action funcToTest ) : long

Runs a function for given time span, and return average runs per second. Number of tasks spawned matches number of logical processors.

SpinPerSec ( long millisecondsToRun, System.Action funcToTest ) : long

Runs a function for given time span, and return average runs per second.

메소드 상세

Spin() 공개 정적인 메소드

Counts how many time certain function was executed in a given time span.
public static Spin ( long millisecondsToRun, System.Action funcToTest ) : long
millisecondsToRun long
funcToTest System.Action
리턴 long

SpinParallel() 공개 정적인 메소드

Runs given function in parallel on multiple tasks. Number of tasks spawned matches number of logical processors.
public static SpinParallel ( long millisecondsToRun, System.Action funcToTest ) : long
millisecondsToRun long
funcToTest System.Action
리턴 long

SpinParallelPerSec() 공개 정적인 메소드

Runs a function for given time span, and return average runs per second. Number of tasks spawned matches number of logical processors.
public static SpinParallelPerSec ( long millisecondsToRun, System.Action funcToTest ) : long
millisecondsToRun long
funcToTest System.Action
리턴 long

SpinPerSec() 공개 정적인 메소드

Runs a function for given time span, and return average runs per second.
public static SpinPerSec ( long millisecondsToRun, System.Action funcToTest ) : long
millisecondsToRun long
funcToTest System.Action
리턴 long