39 references to Elapsed
IdeCoreBenchmarks (1)
NavigateToBenchmarks.cs (1)
196indexTime += stopwatch.Elapsed;
Microsoft.CodeAnalysis.EditorFeatures (7)
InlineRename\UI\SmartRename\SmartRenameViewModel.cs (1)
230_semanticContextDelay = stopwatch.Elapsed;
IntelliSense\AsyncCompletion\CompletionSource.cs (2)
146AsyncCompletionLogger.LogSourceInitializationTicksDataPoint(stopwatch.Elapsed); 311AsyncCompletionLogger.LogSourceGetContextTicksDataPoint(totalStopWatch.Elapsed, isCanceled: cancellationToken.IsCancellationRequested);
IntelliSense\AsyncCompletion\ItemManager.cs (2)
75AsyncCompletionLogger.LogItemManagerSortTicksDataPoint(stopwatch.Elapsed); 156AsyncCompletionLogger.LogItemManagerUpdateDataPoint(stopwatch.Elapsed, isCanceled: cancellationToken.IsCancellationRequested);
QuickInfo\OnTheFlyDocsView.xaml.cs (2)
193var copilotRequestTime = stopwatch.Elapsed; 255m["ElapsedTime"] = stopwatch.Elapsed;
Microsoft.CodeAnalysis.Features (19)
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionProvider.cs (1)
183CompletionProvidersLogger.LogTypeImportCompletionTicksDataPoint(_elapsedTime.Elapsed);
Copilot\ICopilotChangeAnalysisService.cs (7)
100var forkingTime = forkingTimeStopWatch.Elapsed; 119var totalDiagnosticComputationTime = totalDiagnosticComputationTimeStopWatch.Elapsed; 126var totalAnalysisTime = totalAnalysisTimeStopWatch.Elapsed; 206computationTime.Elapsed, 253var totalComputationTime = totalComputationStopWatch.Elapsed; 284callback((codeFixCollection, success, applicationTimeStopWatch.Elapsed)); 337var totalApplicationTime = totalApplicationTimeStopWatch.Elapsed;
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (7)
546return DocumentAnalysisResults.Unchanged(documentId, filePath, analysisStopwatch.Elapsed); 564return DocumentAnalysisResults.Blocked(documentId, filePath, [], syntaxError, analysisStopwatch.Elapsed, hasChanges); 572return DocumentAnalysisResults.Blocked(documentId, filePath, [new RudeEditDiagnostic(RudeEditKind.ExperimentalFeaturesEnabled, span: default)], syntaxError: null, analysisStopwatch.Elapsed, hasChanges); 586return DocumentAnalysisResults.Blocked(documentId, filePath, rudeEdits: [], syntaxError: null, analysisStopwatch.Elapsed, hasChanges); 595return DocumentAnalysisResults.Blocked(documentId, filePath, [new RudeEditDiagnostic(RudeEditKind.NotSupportedByRuntime, default)], syntaxError: null, analysisStopwatch.Elapsed, hasChanges); 691analysisStopwatch.Elapsed, 706return DocumentAnalysisResults.Blocked(documentId, filePath, [diagnostic], syntaxError: null, analysisStopwatch.Elapsed, hasChanges);
EditAndContinue\EditSession.cs (1)
1264Telemetry.LogEmitDifferenceTime(emitDifferenceTimer.Elapsed);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingIdleProcessor.cs (2)
71=> _timeSinceLastAccess.Elapsed < BackOffTimeSpan; 105var timeLeft = BackOffTimeSpan - _timeSinceLastAccess.Elapsed;
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
167if (stopwatch.Elapsed > timeout)
Microsoft.CodeAnalysis.LanguageServer (1)
Testing\TestDiscoverer.cs (1)
71var elapsed = stopwatch.Elapsed;
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
LspServices\RequestTelemetryScope.cs (2)
23_queuedDuration = _stopwatch.Elapsed; 46var requestDuration = _stopwatch.Elapsed;
Microsoft.CodeAnalysis.Remote.ServiceHub (3)
Host\AssetProvider.cs (1)
87var elapsed = timer.Elapsed;
Host\SolutionAssetCache.cs (1)
139if (entry.Stopwatch.Elapsed <= _purgeAfterTimeSpan)
src\VisualStudio\Core\Def\Telemetry\Shared\TimedTelemetryLogBlock.cs (1)
36var elapsed = (long)_stopwatch.Elapsed.TotalMilliseconds;
Microsoft.CodeAnalysis.Workspaces (3)
Classification\SyntaxClassification\SyntacticChangeRangeComputer.cs (3)
95if (stopwatch.Elapsed < timeout) 148if (stopwatch.Elapsed > timeout) 215if (stopwatch.Elapsed > timeout)
Microsoft.VisualStudio.LanguageServices (2)
InheritanceMargin\InheritanceMarginTaggerProvider.cs (1)
99var elapsed = stopwatch.Elapsed;
Telemetry\Shared\TimedTelemetryLogBlock.cs (1)
36var elapsed = (long)_stopwatch.Elapsed.TotalMilliseconds;
Microsoft.VisualStudio.LanguageServices.DevKit (1)
src\VisualStudio\Core\Def\Telemetry\Shared\TimedTelemetryLogBlock.cs (1)
36var elapsed = (long)_stopwatch.Elapsed.TotalMilliseconds;