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