19 references to Elapsed
Microsoft.CodeAnalysis (18)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
1152var 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)
133newTable.AddEntry(sourceValues, EntryState.Added, stopwatch.Elapsed, sourceInputs, EntryState.Added); 135else if (!sourceTable.IsCached || !newTable.TryUseCachedEntries(stopwatch.Elapsed, sourceInputs)) 137if (!newTable.TryModifyEntry(sourceValues, _comparer, stopwatch.Elapsed, sourceInputs, EntryState.Modified)) 139newTable.AddEntry(sourceValues, EntryState.Added, stopwatch.Elapsed, sourceInputs, EntryState.Added);
SourceGeneration\Nodes\CombineNode.cs (2)
73if (state != EntryState.Modified || _comparer is null || !builder.TryModifyEntry(entry, _comparer, stopwatch.Elapsed, stepInputs, state)) 75builder.AddEntry(entry, state, stopwatch.Elapsed, stepInputs, state);
SourceGeneration\Nodes\InputNode.cs (1)
45TimeSpan elapsedTime = stopwatch.Elapsed;
SourceGeneration\Nodes\PredicateSyntaxStrategy.cs (3)
87entry = _filterTable.AddEntries(nodes, state, stopwatch.Elapsed, noInputStepsStepInfo, state); 101if (transformInputState == EntryState.Added || !_transformTable.TryModifyEntry(transformed, _comparer, stopwatch.Elapsed, noInputStepsStepInfo, transformInputState)) 103_transformTable.AddEntry(transformed, EntryState.Added, stopwatch.Elapsed, noInputStepsStepInfo, EntryState.Added);
SourceGeneration\Nodes\SourceOutputNode.cs (1)
75nodeTable.AddEntry(sourcesAndDiagnostics, EntryState.Added, stopwatch.Elapsed, inputs, EntryState.Added);
SourceGeneration\Nodes\SyntaxReceiverStrategy.cs (1)
82lastElapsedTime = stopwatch.Elapsed;
SourceGeneration\Nodes\TransformNode.cs (2)
77if (entry.State != EntryState.Modified || !newTable.TryModifyEntries(newOutputs, _comparer, stopwatch.Elapsed, inputs, entry.State)) 79newTable.AddEntries(newOutputs, EntryState.Added, stopwatch.Elapsed, inputs, entry.State);
SourceGeneration\SyntaxStore.cs (1)
104var elapsed = sw.Elapsed;
Microsoft.CodeAnalysis.ExternalAccess.RazorCompiler (1)
HostOutputNode.cs (1)
58nodeTable.AddEntry(output.ToImmutableAndFree(), EntryState.Added, stopwatch.Elapsed, inputs, EntryState.Added);