21 references to Elapsed
Microsoft.CodeAnalysis (21)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
1168var elapsed = timer.Elapsed.Ticks;
SourceGeneration\GeneratorTimerExtensions.cs (2)
51public TimeSpan Elapsed => _adjustRunTime is not null ? _adjustRunTime(_timer.Elapsed) : _timer.Elapsed;
SourceGeneration\Nodes\BatchNode.cs (4)
135tableBuilder.AddEntry(sourceValues, EntryState.Added, stopwatch.Elapsed, sourceInputs, EntryState.Added); 137else if (!sourceTable.IsCached || !tableBuilder.TryUseCachedEntries(stopwatch.Elapsed, sourceInputs)) 139if (!tableBuilder.TryModifyEntry(sourceValues, _comparer, stopwatch.Elapsed, sourceInputs, EntryState.Modified)) 141tableBuilder.AddEntry(sourceValues, EntryState.Added, stopwatch.Elapsed, sourceInputs, EntryState.Added);
SourceGeneration\Nodes\CombineNode.cs (2)
75if (state != EntryState.Modified || _comparer is null || !tableBuilder.TryModifyEntry(entry, _comparer, stopwatch.Elapsed, stepInputs, state)) 77tableBuilder.AddEntry(entry, state, stopwatch.Elapsed, stepInputs, state);
SourceGeneration\Nodes\HostOutputNode.cs (1)
60nodeTable.AddEntry(output.ToImmutableAndFree(), EntryState.Added, stopwatch.Elapsed, inputs, EntryState.Added);
SourceGeneration\Nodes\InputNode.cs (1)
48TimeSpan elapsedTime = stopwatch.Elapsed;
SourceGeneration\Nodes\PredicateSyntaxStrategy.cs (4)
88if (state != EntryState.Modified || !_filterTable.TryModifyEntries(nodes, Roslyn.Utilities.ReferenceEqualityComparer.Instance, stopwatch.Elapsed, noInputStepsStepInfo, state, out entry)) 90entry = _filterTable.AddEntries(nodes, state, stopwatch.Elapsed, noInputStepsStepInfo, state); 111if (transformInputState == EntryState.Added || !_transformTable.TryModifyEntry(transformed, _comparer, stopwatch.Elapsed, noInputStepsStepInfo, transformInputState)) 113_transformTable.AddEntry(transformed, EntryState.Added, stopwatch.Elapsed, noInputStepsStepInfo, EntryState.Added);
SourceGeneration\Nodes\SourceOutputNode.cs (2)
74if (entry.State != EntryState.Modified || !tableBuilder.TryModifyEntry(sourcesAndDiagnostics, EqualityComparer<TOutput>.Default, stopwatch.Elapsed, inputs, entry.State)) 76tableBuilder.AddEntry(sourcesAndDiagnostics, EntryState.Added, stopwatch.Elapsed, inputs, EntryState.Added);
SourceGeneration\Nodes\SyntaxReceiverStrategy.cs (1)
82lastElapsedTime = stopwatch.Elapsed;
SourceGeneration\Nodes\TransformNode.cs (2)
90if (entry.State != EntryState.Modified || !tableBuilder.TryModifyEntries(newOutputs, _comparer, stopwatch.Elapsed, inputs, entry.State)) 92tableBuilder.AddEntries(newOutputs, EntryState.Added, stopwatch.Elapsed, inputs, entry.State);
SourceGeneration\SyntaxStore.cs (1)
104var elapsed = sw.Elapsed;