21 references to Elapsed
Microsoft.CodeAnalysis (21)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
1360
var elapsed = timer.
Elapsed
.Ticks;
SourceGeneration\GeneratorTimerExtensions.cs (2)
51
public TimeSpan Elapsed => _adjustRunTime is not null ? _adjustRunTime(_timer.
Elapsed
) : _timer.
Elapsed
;
SourceGeneration\Nodes\AbstractSourceOutputNode.cs (2)
70
if (entry.State != EntryState.Modified || !tableBuilder.TryModifyEntry(sourcesAndDiagnostics, stopwatch.
Elapsed
, inputs, entry.State))
72
tableBuilder.AddEntry(sourcesAndDiagnostics, EntryState.Added, stopwatch.
Elapsed
, inputs, EntryState.Added);
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, 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, 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)
58
TimeSpan elapsedTime = stopwatch.
Elapsed
;
SourceGeneration\Nodes\PredicateSyntaxStrategy.cs (4)
93
if (state != EntryState.Modified || !_filterTable.TryModifyEntries(nodes, stopwatch.
Elapsed
, noInputStepsStepInfo, state, out entry))
95
entry = _filterTable.AddEntries(nodes, state, stopwatch.
Elapsed
, noInputStepsStepInfo, state);
116
if (transformInputState == EntryState.Added || !_transformTable.TryModifyEntry(transformed, stopwatch.
Elapsed
, noInputStepsStepInfo, transformInputState))
118
_transformTable.AddEntry(transformed, EntryState.Added, stopwatch.
Elapsed
, noInputStepsStepInfo, EntryState.Added);
SourceGeneration\Nodes\SyntaxReceiverStrategy.cs (1)
87
lastElapsedTime = stopwatch.
Elapsed
;
SourceGeneration\Nodes\TransformNode.cs (2)
92
if (entry.State != EntryState.Modified || !tableBuilder.TryModifyEntries(newOutputs, stopwatch.
Elapsed
, inputs, entry.State))
94
tableBuilder.AddEntries(newOutputs, EntryState.Added, stopwatch.
Elapsed
, inputs, entry.State);
SourceGeneration\SyntaxStore.cs (1)
107
var elapsed = sw.
Elapsed
;