Category5.Profiler.EndTime C# (CSharp) Method

EndTime() public static method

public static EndTime ( string function, bool outputToDebug ) : void
function string
outputToDebug bool
return void
        public static void EndTime(string function, bool outputToDebug)
        {
            if (enableProfiling)
            {
                Stopwatch stopwatch = Timers[function];
                stopwatch.Stop();

                if (outputToDebug)
                {
                    AddToDebugOutput(function + ": " + GetElapsedTime(function).ToString() + "\n");
                }
            }
        }