public static Time ( string opName, System.Action action ) : System.TimeSpan | ||
opName | string | |
action | System.Action | |
return | System.TimeSpan |
public static TimeSpan Time (string opName, Action action)
{
var mark = new Benchmark (opName).Start ();
action ();
mark.Stop ();
logger.Info (mark.ToString ());
return mark.Elapsed;
}
Benchmark::Time ( string opName, System.Action action, int loopCount, bool warmup ) : System.TimeSpan |