Benchmark.Measure
Static Method in Benchmark
Declaration
public static double Measure(Action foo, int iterations, bool log = true)
Description
Measures the execution time of a function with a given amount of iterations.
Parameters
foo | The function to be executed. |
iterations | The amount of times the function is executed. |
log | Logs the result to the console. |
Returns
double | The execution time of the function in milliseconds. |