Endjin.Assembly.ChangeDetection.Infrastructure.Tracer.FormatDuration C# (CSharp) 메소드

FormatDuration() 개인적인 메소드

private FormatDuration ( long duration ) : string
duration long
리턴 string
        private string FormatDuration(long duration)
        {
            // When tracing is reconfigured at runtime we might not 
            // have the enter time at hand which results in huge duration times
            // We mark them as N.a. to indicate that we have the enter time not recorded
            if (duration > 0xfffffffffL)
            {
                return "N.a.ms";
            }
            return string.Format("{0:N0}ms", duration / 10000);
        }