C# Класс Icing.Diagnostics.Algorithm

Contains information about an algorithm and its performance.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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