Energy Core Library
Energy.Core.Benchmark Class Reference

Classes

class  Result
 
class  TimeMeasurement
 

Static Public Member Functions

static Energy.Core.Benchmark.Result Profile (Energy.Base.Anonymous.Function function, int iterations, int warm)
 Perform a profiling operation by launching the action the specified number of times and returning the result of the profiling. More...
 
static Energy.Core.Benchmark.Result Profile (Energy.Base.Anonymous.Function function, int iterations, string name)
 Perform a profiling operation by launching the action the specified number of times and returning the result of the profiling. More...
 
static Energy.Core.Benchmark.Result Profile (Energy.Base.Anonymous.Function function, int iterations, int warm, string name)
 Perform a profiling operation by launching the action the specified number of times and returning the result of the profiling. More...
 
static Energy.Core.Benchmark.Result Profile (Energy.Base.Anonymous.Function function, int iterations)
 Perform a profiling operation by launching the action the specified number of times and returning the result of the profiling. More...
 
static Energy.Core.Benchmark.Result Profile (Energy.Base.Anonymous.Function function)
 Perform a profiling operation by launching the action the specified number of times and returning the result of the profiling. More...
 
static TimeMeasurement Time (bool console, string format)
 
static TimeMeasurement Time (bool console)
 
static TimeMeasurement Time ()
 
static int Loop (Energy.Base.Anonymous.Function function, TimeSpan timeSpan)
 Repeat action for a specified time and return number of iterations done during the specified time. If time was not specified function will result -1. If no operation has been performed before the specified time has elapsed, the function will return a zero value. More...
 
static int Loop (Energy.Base.Anonymous.Function function, double time)
 Repeat action for a specified time and return number of iterations done during the specified time. If no operation has been performed before the specified time has elapsed, the function will return a zero value. More...
 

Member Function Documentation

◆ Loop() [1/2]

static int Energy.Core.Benchmark.Loop ( Energy.Base.Anonymous.Function  function,
TimeSpan  timeSpan 
)
static

Repeat action for a specified time and return number of iterations done during the specified time. If time was not specified function will result -1. If no operation has been performed before the specified time has elapsed, the function will return a zero value.

Parameters
function
timeSpan
Returns

◆ Loop() [2/2]

static int Energy.Core.Benchmark.Loop ( Energy.Base.Anonymous.Function  function,
double  time 
)
static

Repeat action for a specified time and return number of iterations done during the specified time. If no operation has been performed before the specified time has elapsed, the function will return a zero value.

Parameters
function
time
Returns

◆ Profile() [1/5]

static Energy.Core.Benchmark.Result Energy.Core.Benchmark.Profile ( Energy.Base.Anonymous.Function  function,
int  iterations,
int  warm 
)
static

Perform a profiling operation by launching the action the specified number of times and returning the result of the profiling.

Parameters
function
iterations
warm

◆ Profile() [2/5]

static Energy.Core.Benchmark.Result Energy.Core.Benchmark.Profile ( Energy.Base.Anonymous.Function  function,
int  iterations,
string  name 
)
static

Perform a profiling operation by launching the action the specified number of times and returning the result of the profiling.

Parameters
function
iterations
name

◆ Profile() [3/5]

static Energy.Core.Benchmark.Result Energy.Core.Benchmark.Profile ( Energy.Base.Anonymous.Function  function,
int  iterations,
int  warm,
string  name 
)
static

Perform a profiling operation by launching the action the specified number of times and returning the result of the profiling.

Parameters
function
iterations
warm
name

◆ Profile() [4/5]

static Energy.Core.Benchmark.Result Energy.Core.Benchmark.Profile ( Energy.Base.Anonymous.Function  function,
int  iterations 
)
static

Perform a profiling operation by launching the action the specified number of times and returning the result of the profiling.

Parameters
function
iterations

◆ Profile() [5/5]

static Energy.Core.Benchmark.Result Energy.Core.Benchmark.Profile ( Energy.Base.Anonymous.Function  function)
static

Perform a profiling operation by launching the action the specified number of times and returning the result of the profiling.

Parameters
function

◆ Time() [1/3]

static TimeMeasurement Energy.Core.Benchmark.Time ( bool  console,
string  format 
)
static

◆ Time() [2/3]

static TimeMeasurement Energy.Core.Benchmark.Time ( bool  console)
static

◆ Time() [3/3]

static TimeMeasurement Energy.Core.Benchmark.Time ( )
static

The documentation for this class was generated from the following file: