Category5.Profiler.GetElapsedTime C# (CSharp) Method

GetElapsedTime() public static method

public static GetElapsedTime ( string function ) : long
function string
return long
        public static long GetElapsedTime(string function)
        {
            if (enableProfiling)
            {
                Stopwatch stopwatch = Timers[function];
                return stopwatch.ElapsedMilliseconds;
            }
            else
            {
                return 0;
            }
        }