C# Class Codaxy.Common.Benchmarking.BenchmarkResults

显示文件 Open project: codaxy/common

Public Methods

Method Description
CreateStopwatch ( String name, int repeats = 1 ) : BenchmarkStopwatch
GetResults ( ) : Codaxy.Common.Benchmarking.BenchmarkResult[]
Report ( String benchmarkName, System.TimeSpan span ) : void
Report ( String benchmarkName, System.TimeSpan span, int count ) : void
Reset ( ) : void

Private Methods

Method Description
Acquire ( String name ) : BenchmarkResult

Method Details

CreateStopwatch() public method

public CreateStopwatch ( String name, int repeats = 1 ) : BenchmarkStopwatch
name String
repeats int
return BenchmarkStopwatch

GetResults() public method

public GetResults ( ) : Codaxy.Common.Benchmarking.BenchmarkResult[]
return Codaxy.Common.Benchmarking.BenchmarkResult[]

Report() public method

public Report ( String benchmarkName, System.TimeSpan span ) : void
benchmarkName String
span System.TimeSpan
return void

Report() public method

public Report ( String benchmarkName, System.TimeSpan span, int count ) : void
benchmarkName String
span System.TimeSpan
count int
return void

Reset() public method

public Reset ( ) : void
return void