CsCheck/Dbg.cs
/// <summary>Record time to this line.</summary>
Record time to this line.
Record time to this line .
public void Line([CallerLineNumber] int line = 0)
        {
            var timestamp = Stopwatch.GetTimestamp();
            lock (times)
            {
                ref var time = ref times.GetValueOrNullRef(string.Concat(Name, " line ", line.ToString()));
                time.Item1 += timestamp - Start;
                time.Item2++;
            }
        }
public void Line ( [ CallerLineNumber ] int line = 0 ) { var timestamp = Stopwatch . GetTimestamp ( ) ; lock ( times ) { ref var time = ref times . GetValueOrNullRef ( string . Concat ( Name , " " , line . ToString ( ) ) ) ; time . Item1 += timestamp - Start ; time . Item2 ++ ; } }
Record time to this line.
Record time to this line .
int
[CallerLineNumber]