using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
publicclass Helpers
{
publicstaticlong TimeFunction(Action action)
{
var sw = new Stopwatch();
sw.Start();
action.Invoke();
sw.Stop();
return sw.ElapsedMilliseconds;
}
}