C# Class Icing.Diagnostics.Algorithm

Contains information about an algorithm and its performance.
Mostrar archivo Open project: benallred/Icing Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
Benchmark ( int numberOfIterations, Stats stats ) : Stats
Benchmark_ReportIndividualIterations ( int numberOfIterations, Stats stats ) : Stats

Method Details

Algorithm() public method

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.
return System

Algorithm() public method

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.
return System

BenchmarkAndCacheExecutionTime() public method

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. ///
return Stats