Material Clustering Benchmark
BenchmarkHelper Class Reference

Static Public Member Functions

static long MeasureTime (Action action)
 Runs the provided action and measures the time it required to finish. Ensures GC will not trigger while running the action, as it would interfere with the measurement. More...
 

Detailed Description

Definition at line 3 of file BenchmarkHelper.cs.

Member Function Documentation

◆ MeasureTime()

static long BenchmarkHelper.MeasureTime ( Action  action)
inlinestatic

Runs the provided action and measures the time it required to finish. Ensures GC will not trigger while running the action, as it would interfere with the measurement.

Parameters
actionAction to run.
Returns
Time in milliseconds.

Definition at line 29 of file BenchmarkHelper.cs.


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