C# 클래스 Icing.Diagnostics.Algorithm

Contains information about an algorithm and its performance.
파일 보기 프로젝트 열기: benallred/Icing 1 사용 예제들

공개 메소드들

메소드 설명
Algorithm ( System.Action action ) : System

Initializes a new instance of the Algorithm class.

Algorithm ( string name, System.Action action ) : System

Initializes a new instance of the Algorithm class.

BenchmarkAndCacheExecutionTime ( int numberOfIterations, bool reportIndividualIterations ) : Stats

Benchmarks and caches (in ExecutionTime) the execution time stats of the algorithm.

비공개 메소드들

메소드 설명
Benchmark ( int numberOfIterations, Stats stats ) : Stats
Benchmark_ReportIndividualIterations ( int numberOfIterations, Stats stats ) : Stats

메소드 상세

Algorithm() 공개 메소드

Initializes a new instance of the Algorithm class.
public Algorithm ( System.Action action ) : System
action System.Action The action, or the code of the algorithm itself.
리턴 System

Algorithm() 공개 메소드

Initializes a new instance of the Algorithm class.
public Algorithm ( string name, System.Action action ) : System
name string The name of the algorithm.
action System.Action The action, or the code of the algorithm itself.
리턴 System

BenchmarkAndCacheExecutionTime() 공개 메소드

Benchmarks and caches (in ExecutionTime) the execution time stats of the algorithm.
public BenchmarkAndCacheExecutionTime ( int numberOfIterations, bool reportIndividualIterations ) : Stats
numberOfIterations int The number of iterations to run.
reportIndividualIterations bool /// If set to true, reports individual iteration stats; if false, reports average iteration stats. /// If the algorithm runs really fast, the floating point calculations will come out to zero, so you will want to set this to false. ///
리턴 Stats