292 references to TotalSeconds
aspire (26)
Acquisition\PeerInstallProbe.cs (1)
251ProcessCaptureFailureKind.TimedOut => $"Peer probe timed out after {_timeout.TotalSeconds:F1}s.",
Backchannel\AuxiliaryBackchannelMonitor.cs (1)
492logger.LogDebug("Socket connection timed out after {ElapsedSeconds} seconds: {SocketPath}", maxElapsed.TotalSeconds, socketPath);
Commands\AppHostStartupTimeout.cs (2)
44&& seconds <= TimeSpan.MaxValue.TotalSeconds) 51if (int.TryParse(configuredStartupTimeout, CultureInfo.InvariantCulture, out var startupTimeoutSeconds) && startupTimeoutSeconds > timeout.TotalSeconds)
Commands\InstallationInfoOutput.cs (2)
50logger.LogWarning("Aspire CLI installation discovery timed out after {TimeoutSeconds} seconds.", timeout.TotalSeconds); 54timeout.TotalSeconds));
Commands\PipelineCommandBase.cs (1)
943var durationStr = $"({duration.TotalSeconds:F1}s)";
Commands\WaitCommand.cs (1)
144InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, WaitCommandStrings.ResourceReachedTargetStatus, resourceName, statusLabel, elapsed.TotalSeconds));
ConsoleCancellationManager.cs (1)
354_logger.LogWarning("Handler did not complete within {Timeout}s after graceful expiration, forcing termination.", _finalDrainBudget.TotalSeconds);
DotNet\DotNetCliRunner.cs (3)
553logger.LogError("Timed out waiting for AppHost backchannel after {Timeout} seconds", connectionTimeout.TotalSeconds); 554var timeoutException = new TimeoutException($"Timed out waiting for AppHost backchannel after {connectionTimeout.TotalSeconds} seconds. Check the debug logs for more details."); 1579delay.TotalSeconds);
Projects\GuestAppHostProject.cs (2)
1367_logger.LogError("Timed out waiting for AppHost server to start after {Timeout} seconds", connectionTimeout.TotalSeconds); 1368var timeoutException = new TimeoutException($"Timed out waiting for AppHost server to start after {connectionTimeout.TotalSeconds} seconds. Check the debug logs for more details.");
src\Shared\FileLock.cs (1)
106throw new TimeoutException($"Failed to acquire file lock '{lockPath}' within {effectiveTimeout.TotalSeconds:F0} seconds.");
src\Shared\ProcessStartTimeHelper.cs (1)
283var toleranceSeconds = tolerance is { } value ? (long)value.TotalSeconds : 0;
Utils\ConsoleActivityLogger.cs (1)
281var totalSeconds = totalDuration.TotalSeconds;
Utils\EnvironmentChecker\DcpConnectionChecker.cs (1)
92s_connectionTimeout.TotalSeconds));
Utils\EnvironmentChecker\EnvironmentChecker.cs (5)
90_totalTimeout.TotalSeconds, 95string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.EnvironmentChecksTimedOutMessageFormat, _totalTimeout.TotalSeconds), 105_checkTimeout.TotalSeconds); 109string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.EnvironmentCheckTimedOutMessageFormat, checkName, _checkTimeout.TotalSeconds), 134["timeoutSeconds"] = timeout.TotalSeconds,
Utils\ProcessCaptureRunner.cs (3)
129FailureMessage: timedOut ? $"Process timed out after {timeout.TotalSeconds:F1}s." : null, 200TryGetPid(process), bound.TotalSeconds); 233logger.LogDebug(ex, "Timed out waiting {Bound}s for process output capture.", bound?.TotalSeconds);
aspire-managed (1)
src\Shared\ProcessStartTimeHelper.cs (1)
283var toleranceSeconds = tolerance is { } value ? (long)value.TotalSeconds : 0;
Aspire.Acquisition.Tests (3)
tests\Shared\TemplatesTesting\ToolCommand.cs (3)
95throw new TaskCanceledException($"Command execution timed out after {_timeout!.Value.TotalSeconds} secs: '{resolvedCommand} {fullArgs}'", tce); 170_testOutput.WriteLine($"{_msgPrefix}Process ran for {runTimeStopwatch.Elapsed.TotalSeconds} secs"); 187_testOutput.WriteLine($"{_msgPrefix}Process has been running for {runTimeStopwatch.Elapsed.TotalSeconds} secs");
Aspire.Cli.EndToEnd.Tests (1)
Helpers\CliE2EAutomatorHelpers.cs (1)
774var startupTimeoutSeconds = Math.Max(1, (int)Math.Ceiling(effectiveTimeout.TotalSeconds));
Aspire.Cli.Tests (3)
Acquisition\PeerInstallProbeTests.cs (1)
362using var fakePeer = FakePeerScript.BuildSleeper(outputHelper, sleepSeconds: (int)fakeSleep.TotalSeconds);
tests\Shared\Logging\XunitLoggerProvider.cs (1)
71$"{(DateTimeOffset.UtcNow - _logStart.Value).TotalSeconds.ToString("N3", CultureInfo.InvariantCulture)}s" :
tests\Shared\TestProcesses.cs (1)
40var seconds = ((int)s_maxLifetime.TotalSeconds).ToString(CultureInfo.InvariantCulture);
Aspire.Confluent.Kafka (3)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\InstrumentedConsumer.cs (1)
316ConfluentKafkaCommon.ReceiveDurationHistogram.Record(duration.TotalSeconds, in tags);
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\InstrumentedProducer.cs (2)
314ConfluentKafkaCommon.PublishDurationHistogram.Record(duration.TotalSeconds, in tags); 322ConfluentKafkaCommon.PublishDurationHistogram.Record(duration.TotalSeconds, in tags);
Aspire.Dashboard (3)
Components\Controls\ResourceDetails.razor.cs (2)
485var roundedDuration = TimeSpan.FromSeconds(Math.Round(duration.TotalSeconds)); 488if (roundedDuration.TotalSeconds < 10)
src\Shared\FileLock.cs (1)
106throw new TimeoutException($"Failed to acquire file lock '{lockPath}' within {effectiveTimeout.TotalSeconds:F0} seconds.");
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Logging\XunitLoggerProvider.cs (1)
71$"{(DateTimeOffset.UtcNow - _logStart.Value).TotalSeconds.ToString("N3", CultureInfo.InvariantCulture)}s" :
Aspire.Dashboard.Tests (1)
tests\Shared\Logging\XunitLoggerProvider.cs (1)
71$"{(DateTimeOffset.UtcNow - _logStart.Value).TotalSeconds.ToString("N3", CultureInfo.InvariantCulture)}s" :
Aspire.EndToEnd.Tests (3)
tests\Shared\TemplatesTesting\ToolCommand.cs (3)
95throw new TaskCanceledException($"Command execution timed out after {_timeout!.Value.TotalSeconds} secs: '{resolvedCommand} {fullArgs}'", tce); 170_testOutput.WriteLine($"{_msgPrefix}Process ran for {runTimeStopwatch.Elapsed.TotalSeconds} secs"); 187_testOutput.WriteLine($"{_msgPrefix}Process has been running for {runTimeStopwatch.Elapsed.TotalSeconds} secs");
Aspire.Hosting (2)
Lifecycle\TerminalHostOrphanCleanupService.cs (1)
153s_shutdownCleanupTimeout.TotalSeconds);
src\Shared\ProcessStartTimeHelper.cs (1)
283var toleranceSeconds = tolerance is { } value ? (long)value.TotalSeconds : 0;
Aspire.Hosting.Azure.Kubernetes (1)
AzureKubernetesEnvironmentResource.AksPipeline.cs (1)
555attempt, pollInterval.TotalSeconds);
Aspire.Hosting.DevTunnels (2)
DevTunnelCliClient.cs (2)
148logger?.LogTrace("Waiting {WaitSeconds} seconds before retrying to create dev tunnel '{TunnelId}'", _cliRetryOnErrorDelay.TotalSeconds, tunnelId); 236logger?.LogTrace("Waiting {WaitSeconds} seconds before retrying to create port '{PortNumber}' on dev tunnel '{TunnelId}'", _cliRetryOnErrorDelay.TotalSeconds, portNumber, tunnelId);
Aspire.Hosting.Foundry (1)
PromptAgent\AzurePromptAgentResource.cs (1)
223var retryMessage = $"Foundry project endpoint for '{project.Name}' is not ready yet. Retrying prompt agent deployment in {s_projectEndpointReadinessDelay.TotalSeconds:n0} seconds ({retry.AttemptNumber + 1}/{ProjectEndpointReadinessMaxRetryAttempts}).";
Aspire.Hosting.OpenAI (1)
OpenAIHealthCheck.cs (1)
76return HealthCheckResult.Unhealthy($"StatusPage request timed out after {_timeout.TotalSeconds:0.#}s.", oce);
Aspire.Hosting.Radius (2)
Publishing\SealedSecretApplyStep.cs (2)
352$"{timeout.TotalSeconds:0}s. The Sealed Secrets controller must have status updates enabled " + 369$"(SealedSecret '{ns}/{name}') did not complete within the {timeout.TotalSeconds:0}s " +
Aspire.Hosting.Redis (1)
RedisBuilderExtensions.cs (1)
125var interval = (persistenceAnnotation.Interval ?? TimeSpan.FromSeconds(60)).TotalSeconds.ToString(CultureInfo.InvariantCulture);
Aspire.Hosting.RemoteHost (2)
JsonRpcCallbackInvoker.cs (1)
50throw new TimeoutException($"Callback '{callbackId}' timed out after {s_callbackTimeout.TotalSeconds}s");
src\Shared\ProcessStartTimeHelper.cs (1)
283var toleranceSeconds = tolerance is { } value ? (long)value.TotalSeconds : 0;
Aspire.Hosting.Rust (1)
CargoMetadataReader.cs (1)
112$"'cargo metadata' for the Rust app '{resourceName}' did not complete within {s_timeout.TotalSeconds:0} seconds.");
Aspire.Hosting.Testing.Tests (1)
tests\Shared\Logging\XunitLoggerProvider.cs (1)
71$"{(DateTimeOffset.UtcNow - _logStart.Value).TotalSeconds.ToString("N3", CultureInfo.InvariantCulture)}s" :
Aspire.Hosting.Tests (1)
tests\Shared\TestProcesses.cs (1)
40var seconds = ((int)s_maxLifetime.TotalSeconds).ToString(CultureInfo.InvariantCulture);
Aspire.Hosting.TestUtilities (1)
tests\Shared\Logging\XunitLoggerProvider.cs (1)
71$"{(DateTimeOffset.UtcNow - _logStart.Value).TotalSeconds.ToString("N3", CultureInfo.InvariantCulture)}s" :
Aspire.Hosting.Valkey (1)
ValkeyBuilderExtensions.cs (1)
174var interval = (persistenceAnnotation.Interval ?? TimeSpan.FromSeconds(60)).TotalSeconds.ToString(CultureInfo.InvariantCulture);
Aspire.Playground.Tests (1)
tests\Shared\Logging\XunitLoggerProvider.cs (1)
71$"{(DateTimeOffset.UtcNow - _logStart.Value).TotalSeconds.ToString("N3", CultureInfo.InvariantCulture)}s" :
Aspire.Templates.Tests (3)
tests\Shared\TemplatesTesting\ToolCommand.cs (3)
95throw new TaskCanceledException($"Command execution timed out after {_timeout!.Value.TotalSeconds} secs: '{resolvedCommand} {fullArgs}'", tce); 170_testOutput.WriteLine($"{_msgPrefix}Process ran for {runTimeStopwatch.Elapsed.TotalSeconds} secs"); 187_testOutput.WriteLine($"{_msgPrefix}Process has been running for {runTimeStopwatch.Elapsed.TotalSeconds} secs");
Aspire.TerminalHost (1)
src\Shared\ProcessStartTimeHelper.cs (1)
283var toleranceSeconds = tolerance is { } value ? (long)value.TotalSeconds : 0;
Aspire.TerminalHost.Tests (5)
TerminalHostAppTests.cs (5)
688$"Timed out connecting to producer UDS '{socketPath}' after {timeout.TotalSeconds:F1}s.", last); 733$"Timed out connecting to consumer UDS '{socketPath}' after {timeout.TotalSeconds:F1}s.", last); 789throw new TimeoutException($"{failureMessage} (waited {timeout.TotalSeconds:F1}s)."); 926$"Expected '{path}' to have mode {expected} within {timeout.TotalSeconds:F1}s; last observed {last}."); 941throw new TimeoutException($"Timed out waiting for '{path}' after {timeout.TotalSeconds:F1}s.");
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (1)
316_socket.LingerState = new LingerOption(true, (int)timeout.TotalSeconds);
Infrastructure.Tests (12)
PowerShellScripts\PowerShellCommand.cs (3)
71$"Command execution timed out after {_timeout!.Value.TotalSeconds} secs: pwsh {_scriptPath}", 149_testOutput.WriteLine($"{_msgPrefix}Process ran for {runTimeStopwatch.Elapsed.TotalSeconds:F2} secs"); 166_testOutput.WriteLine($"{_msgPrefix}Process has been running for {runTimeStopwatch.Elapsed.TotalSeconds:F2} secs");
tools\GenerateCITimeline\TimelineRenderer.cs (6)
242? (created.Value - t0).TotalSeconds 243: (started.Value - t0).TotalSeconds; 250StartedAt: (started.Value - t0).TotalSeconds, 251CompletedAt: (completed.Value - t0).TotalSeconds, 494totalSeconds = (actualCompleted.Max() - t0).TotalSeconds; 506totalSeconds = Math.Max(totalSeconds, (runUpdated.Value - runStarted.Value).TotalSeconds);
WorkflowScripts\NodeCommand.cs (3)
65$"Command execution timed out after {_timeout!.Value.TotalSeconds} secs: node {scriptPath}", 141_testOutput.WriteLine($"{_msgPrefix}Process ran for {runTimeStopwatch.Elapsed.TotalSeconds:F2} secs"); 158_testOutput.WriteLine($"{_msgPrefix}Process has been running for {runTimeStopwatch.Elapsed.TotalSeconds:F2} secs");
Microsoft.AspNetCore.Authentication.BearerToken (1)
BearerTokenHandler.cs (1)
74ExpiresIn = (long)Options.BearerTokenExpiration.TotalSeconds,
Microsoft.AspNetCore.Authentication.Core (1)
AuthenticationMetrics.cs (1)
88_authenticatedRequestDuration.Record(duration.TotalSeconds, tags);
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectHandler.cs (1)
441message.MaxAge = Convert.ToInt64(Math.Floor((maxAge.Value).TotalSeconds))
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterHandler.cs (1)
342return Convert.ToInt64(secondsSinceUnixEpocStart.TotalSeconds).ToString(CultureInfo.InvariantCulture);
Microsoft.AspNetCore.Components (6)
ComponentsMetrics.cs (6)
100_eventDuration.Record(duration.TotalSeconds, tags); 112_eventDuration.Record(duration.TotalSeconds, tags); 129_parametersDuration.Record(duration.TotalSeconds, tags); 139_parametersDuration.Record(duration.TotalSeconds, tags); 155_batchDuration.Record(duration.TotalSeconds, tags); 165_batchDuration.Record(duration.TotalSeconds, tags);
Microsoft.AspNetCore.Components.Server (1)
Circuits\CircuitMetrics.cs (1)
76_circuitDuration.Record(duration.TotalSeconds);
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
DebugProxyLauncher.cs (1)
89tcs.TrySetException(new TimeoutException($"Failed to start the debug proxy within the timeout period of {DebugProxyLaunchTimeout.TotalSeconds} seconds."));
Microsoft.AspNetCore.Cors (3)
Infrastructure\CorsPolicy.cs (1)
157PreflightMaxAge.Value.TotalSeconds.ToString(CultureInfo.InvariantCulture) : "null");
Infrastructure\CorsResult.cs (1)
89PreflightMaxAge.Value.TotalSeconds.ToString(CultureInfo.InvariantCulture) : "null");
Infrastructure\CorsService.cs (1)
190headers.AccessControlMaxAge = result.PreflightMaxAge.Value.TotalSeconds.ToString(CultureInfo.InvariantCulture);
Microsoft.AspNetCore.Hosting (1)
Internal\HostingMetrics.cs (1)
98_requestDuration.Record(duration.TotalSeconds, tags);
Microsoft.AspNetCore.Hosting.Abstractions (1)
HostingAbstractionsWebHostBuilderExtensions.cs (1)
163return hostBuilder.UseSetting(WebHostDefaults.ShutdownTimeoutKey, ((int)timeout.TotalSeconds).ToString(CultureInfo.InvariantCulture));
Microsoft.AspNetCore.Http.Connections (4)
Internal\HttpConnectionDispatcher.cs (3)
218if (ttl.TotalSeconds > 0) 220tokenLifetimeSeconds = (int)Math.Min(ttl.TotalSeconds, int.MaxValue); 584if (ttl.TotalSeconds > 0)
Internal\HttpConnectionsMetrics.cs (1)
50_connectionDuration.Record(duration.TotalSeconds,
Microsoft.AspNetCore.Http.Connections.Common (1)
NegotiateProtocol.cs (1)
99writer.WriteNumber(TokenLifetimePropertyNameBytes, (int)Math.Min(tokenLifetime.TotalSeconds, int.MaxValue));
Microsoft.AspNetCore.HttpsPolicy (1)
HstsMiddleware.cs (1)
40var maxAge = Convert.ToInt64(Math.Floor(hstsOptions.MaxAge.TotalSeconds))
Microsoft.AspNetCore.Identity (1)
SignInManagerMetrics.cs (1)
101_authenticateDuration.Record(duration.TotalSeconds, tags);
Microsoft.AspNetCore.InternalTesting (4)
AssemblyTestLog.cs (3)
84_globalLogger.LogInformation("Finished test {testName} in {duration}s", testName, stopwatch.Elapsed.TotalSeconds); 85logger.LogInformation("Finished test {testName} in {duration}s", testName, stopwatch.Elapsed.TotalSeconds); 337? $"{(DateTimeOffset.UtcNow - _logStart.Value).TotalSeconds.ToString("N3", CultureInfo.InvariantCulture)}s"
Logging\XunitLoggerProvider.cs (1)
73$"{(DateTimeOffset.UtcNow - _logStart.Value).TotalSeconds.ToString("N3", CultureInfo.InvariantCulture)}s" :
Microsoft.AspNetCore.RateLimiting (2)
RateLimitingMetrics.cs (2)
109_requestLeaseDurationCounter.Record(duration.TotalSeconds, tags); 159_queuedRequestDurationCounter.Record(duration.TotalSeconds, tags);
Microsoft.AspNetCore.Server.HttpSys (1)
TimeoutManager.cs (1)
182var timeoutValue = Convert.ToInt64(value.TotalSeconds);
Microsoft.AspNetCore.Server.IntegrationTesting (2)
Deployers\ApplicationDeployer.cs (1)
186Logger.LogInformation("[Time]: Total time taken for this test variation '{t}' seconds", _stopwatch.Elapsed.TotalSeconds);
src\aspnetcore\src\Shared\Process\ProcessEx.cs (1)
217_output.WriteLine($"The process didn't exit within the allotted time ({timeSpan.Value.TotalSeconds} seconds).");
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\Infrastructure\KestrelMetrics.cs (2)
154_connectionDuration.Record(duration.TotalSeconds, tags); 345_tlsHandshakeDuration.Record(duration.TotalSeconds, tags);
MinDataRate.cs (1)
28throw new ArgumentOutOfRangeException(nameof(gracePeriod), CoreStrings.FormatMinimumGracePeriodRequired(Heartbeat.Interval.TotalSeconds));
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.Log.cs (1)
303=> ErrorHandshakeTimedOut(logger, handshakeTimeout.TotalSeconds, exception);
Microsoft.AspNetCore.SpaServices.Extensions (2)
AngularCli\AngularCliMiddleware.cs (1)
50$"within the timeout period of {timeout.TotalSeconds} seconds. " +
ReactDevelopmentServer\ReactDevelopmentServerMiddleware.cs (1)
49$"within the timeout period of {timeout.TotalSeconds} seconds. " +
Microsoft.Build (12)
BackEnd\BuildManager\BuildManager.cs (1)
2306Math.Round(projectGraph.ConstructionMetrics.ConstructionTime.TotalSeconds, 3),
BackEnd\BuildManager\CoordinatorClient.cs (3)
414output.WriteLine($"CoordinatorClient: Deferred grant received: {grant.GrantedNodes} nodes (waited {waitTimer.Elapsed.TotalSeconds:F2}s)"); 420output.WriteLine($"CoordinatorClient: Server error while waiting: {waitError.Message} (waited {waitTimer.Elapsed.TotalSeconds:F2}s)"); 424output.WriteLine($"CoordinatorClient: Unexpected response after wait: {responseAfterWait.GetType().Name} (waited {waitTimer.Elapsed.TotalSeconds:F2}s)");
BackEnd\Components\Scheduler\Scheduler.cs (5)
2570duration = (currentEventTime - previousEventTime).TotalSeconds; 2643String.Format(CultureInfo.InvariantCulture, "{0:0.000}", request.GetTimeSpentInState(SchedulableRequestState.Executing).TotalSeconds), 2644String.Format(CultureInfo.InvariantCulture, "{0:0.000}", request.GetTimeSpentInState(SchedulableRequestState.Executing).TotalSeconds + request.GetTimeSpentInState(SchedulableRequestState.Blocked).TotalSeconds + request.GetTimeSpentInState(SchedulableRequestState.Ready).TotalSeconds),
Logging\TerminalLogger\SystemStopwatch.cs (1)
12public override double ElapsedSeconds => _stopwatch.Elapsed.TotalSeconds;
Logging\TerminalLogger\TerminalLogger.cs (2)
603string duration = (e.Timestamp - _buildStartTime).TotalSeconds.ToString("F1"); 613string testDuration = (_testStartTime != null && _testEndTime != null ? (_testEndTime - _testStartTime).Value.TotalSeconds : 0).ToString("F1");
Microsoft.CodeAnalysis (9)
CommandLine\ReportAnalyzerUtil.cs (6)
74var totalAnalyzerExecutionTime = analyzerDriver.AnalyzerExecutionTimes.Sum(kvp => kvp.Value.TotalSeconds); 87var executionTime = analyzerGroup.Sum(kvp => kvp.Value.TotalSeconds); 94executionTime = kvp.Value.TotalSeconds; 156var totalTime = driverTimingInfo.ElapsedTime.TotalSeconds; 170var executionTime = generatorGroup.Sum(x => x.ElapsedTime.TotalSeconds); 176executionTime = timingInfo.ElapsedTime.TotalSeconds;
DiagnosticAnalyzer\AnalyzerDriver.cs (2)
909totalAnalyzerExecutionTime = AnalyzerExecutionTimes.Sum(kvp => kvp.Value.TotalSeconds); 924analyzerExecutionTime = analyzerExecutionTimeSpan.TotalSeconds;
VersionHelper.cs (1)
197int revision = (int)time.TimeOfDay.TotalSeconds / 2;
Microsoft.Diagnostics.NETCore.Client (1)
DiagnosticsClient\DiagnosticsClient.cs (1)
714byte[] serializedConfiguration = SerializePayload((uint)attachTimeout.TotalSeconds, profilerGuid, profilerPath, additionalData);
Microsoft.DotNet.Build.Tasks.Installers (3)
src\CreateDebPackage.cs (1)
33ulong timestamp = (ulong)(DateTime.UtcNow - UnixEpoch).TotalSeconds;
src\RpmBuilder.cs (2)
335entries.Add(new(RpmHeaderTag.ChangelogTimestamp, RpmHeaderEntryType.Int32, _changelogLines.Select(_ => (int)(DateTimeOffset.UtcNow - UnixEpoch).TotalSeconds).ToArray())); 337entries.Add(new(RpmHeaderTag.BuildTime, RpmHeaderEntryType.Int32, new[] { (int)(DateTimeOffset.UtcNow - UnixEpoch).TotalSeconds }));
Microsoft.DotNet.HotReload.Watch (5)
Build\EvaluationResult.cs (3)
91logger.LogDebug("Projects restored in {Time}s.", stopwatch.Elapsed.TotalSeconds.ToString("0.0")); 124logger.LogDebug("Design-time build completed in {Time}s.", stopwatch.Elapsed.TotalSeconds.ToString("0.0")); 125logger.Log(MessageDescriptor.LoadedProjects, projectGraph.Graph.ProjectNodes.Count, projectLoadingStopwatch.Elapsed.TotalSeconds);
Build\ProjectGraphFactory.cs (1)
69logger.LogDebug("Project graph loaded in {Time}s.", stopwatch.Elapsed.TotalSeconds.ToString("0.0"));
Process\ProcessRunner.cs (1)
271logger.Log(MessageDescriptor.WaitingForProcessToExitWithin, state.ProcessId, (int)timeout.Value.TotalSeconds);
Microsoft.Extensions.AI (10)
ChatCompletion\OpenTelemetryChatClient.cs (3)
227double delta = (currentElapsed - lastChunkElapsed).TotalSeconds; 254timeToFirstChunk = stopwatch!.Elapsed.TotalSeconds; 414_operationDurationHistogram.Record(stopwatch.Elapsed.TotalSeconds, tags);
ChatCompletion\OpenTelemetryImageGenerator.cs (1)
224_operationDurationHistogram.Record(stopwatch.Elapsed.TotalSeconds, tags);
Embeddings\OpenTelemetryEmbeddingGenerator.cs (1)
210_operationDurationHistogram.Record(stopwatch.Elapsed.TotalSeconds, tags);
Files\OpenTelemetryHostedFileClient.cs (1)
458_operationDurationHistogram.Record(stopwatch.Elapsed.TotalSeconds, tags);
Realtime\OpenTelemetryRealtimeClientSession.cs (2)
251timeToFirstChunk = stopwatch.Elapsed.TotalSeconds; 756_operationDurationHistogram.Record(stopwatch.Elapsed.TotalSeconds, tags);
SpeechToText\OpenTelemetrySpeechToTextClient.cs (1)
258_operationDurationHistogram.Record(stopwatch.Elapsed.TotalSeconds, tags);
TextToSpeech\OpenTelemetryTextToSpeechClient.cs (1)
257_operationDurationHistogram.Record(stopwatch.Elapsed.TotalSeconds, tags);
Microsoft.Extensions.AI.Evaluation.Reporting (1)
JsonSerialization\TimeSpanConverter.cs (1)
16=> writer.WriteNumberValue(value.TotalSeconds);
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
parent\Microsoft.Extensions.AI.Evaluation.Reporting\CSharp\JsonSerialization\TimeSpanConverter.cs (1)
16=> writer.WriteNumberValue(value.TotalSeconds);
Microsoft.Extensions.AI.Evaluation.Safety (1)
ContentSafetyService.cs (1)
374if (elapsedDuration.TotalSeconds >= serviceConfiguration.TimeoutInSecondsForRetries)
Microsoft.Extensions.Caching.SqlServer (1)
SqlParameterCollectionExtensions.cs (1)
71Columns.Names.SlidingExpirationInSeconds, SqlDbType.BigInt, value.Value.TotalSeconds);
Microsoft.Extensions.Caching.StackExchangeRedis (4)
RedisCache.cs (4)
581(absoluteExpiration.Value - creationTime).TotalSeconds, 582options.SlidingExpiration.Value.TotalSeconds); 586return (long)(absoluteExpiration.Value - creationTime).TotalSeconds; 590return (long)options.SlidingExpiration.Value.TotalSeconds;
Microsoft.Extensions.Http.Resilience (10)
Hedging\Internals\Validators\HttpStandardHedgingResilienceOptionsCustomValidator.cs (6)
20$"Total Request Timeout: {options.TotalRequestTimeout.Timeout.TotalSeconds}s, " + 21$"Attempt Timeout: {options.Endpoint.Timeout.Timeout.TotalSeconds}s"); 29$"Sampling Duration: {options.Endpoint.CircuitBreaker.SamplingDuration.TotalSeconds}s," + 30$"Attempt Timeout: {options.Endpoint.Timeout.Timeout.TotalSeconds}s"); 42$"Total Request Timeout: {options.TotalRequestTimeout.Timeout.TotalSeconds}s, " + 43$"Cumulative Hedging Delay: {maxHedgingDelay.TotalSeconds}s");
Resilience\Internal\Validators\HttpStandardResilienceOptionsCustomValidator.cs (4)
20$"Total Request Timeout: {options.TotalRequestTimeout.Timeout.TotalSeconds}s, " + 21$"Attempt Timeout: {options.AttemptTimeout.Timeout.TotalSeconds}s"); 28$"Sampling Duration: {options.CircuitBreaker.SamplingDuration.TotalSeconds}s," + 29$"Attempt Timeout: {options.AttemptTimeout.Timeout.TotalSeconds}s");
Microsoft.Extensions.Identity.Core (3)
UserManagerMetrics.cs (3)
87_createDuration.Record(duration.TotalSeconds, tags); 106_updateDuration.Record(duration.TotalSeconds, tags); 124_deleteDuration.Record(duration.TotalSeconds, tags);
Microsoft.Extensions.ServiceDiscovery.Dns (2)
Resolver\DnsResolver.Telemetry.cs (2)
42s_queryDuration.Record(duration.TotalSeconds, hostNameTag, queryTypeTag); 47s_queryDuration.Record(duration.TotalSeconds, hostNameTag, queryTypeTag, errorTypeTag);
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
XunitLoggerFactoryExtensions.cs (1)
89$"{(DateTimeOffset.UtcNow - _logStart.Value).TotalSeconds.ToString("N3", CultureInfo.InvariantCulture)}s" :
Microsoft.Maui.Essentials (1)
Vibration\Vibration.shared.cs (1)
114 else if (duration.TotalSeconds > 5)
Microsoft.ML.AutoML (2)
Experiment\Experiment.cs (2)
176runDetail.RuntimeInSeconds = iterationStopwatch.Elapsed.TotalSeconds; 177runDetail.PipelineInferenceTimeInSeconds = getPipelineStopwatch.Elapsed.TotalSeconds;
Microsoft.ML.Core (2)
Environment\ConsoleEnvironment.cs (2)
265writer.Write("(00:{0:00.00})", elapsed.TotalSeconds); 267writer.Write("({0:00}:{1:00.0})", elapsed.Minutes, elapsed.TotalSeconds - 60 * elapsed.Minutes);
Microsoft.ML.StandardTrainers (1)
Standard\SdcaBinary.cs (1)
2074Double trainTime = watch.Elapsed.TotalSeconds;
Microsoft.Net.Http.Headers (6)
CacheControlHeaderValue.cs (4)
355sb.Append(((int)_maxAge.GetValueOrDefault().TotalSeconds).ToString(NumberFormatInfo.InvariantInfo)); 362sb.Append(((int)_sharedMaxAge.GetValueOrDefault().TotalSeconds).ToString(NumberFormatInfo.InvariantInfo)); 371sb.Append(((int)_maxStaleLimit.GetValueOrDefault().TotalSeconds).ToString(NumberFormatInfo.InvariantInfo)); 379sb.Append(((int)_minFresh.GetValueOrDefault().TotalSeconds).ToString(NumberFormatInfo.InvariantInfo));
SetCookieHeaderValue.cs (2)
203maxAge = HeaderUtilities.FormatInt64((long)MaxAge.GetValueOrDefault().TotalSeconds); 350AppendSegment(builder, MaxAgeToken, HeaderUtilities.FormatInt64((long)MaxAge.GetValueOrDefault().TotalSeconds));
Microsoft.TestPlatform.CrossPlatEngine (6)
AttachmentsProcessing\TestRunAttachmentsProcessingManager.cs (1)
213requestData.MetricsCollection.Add(TelemetryDataConstants.TimeTakenInSecForAttachmentsProcessing, stopwatch.Elapsed.TotalSeconds);
Discovery\DiscovererEnumerator.cs (3)
133_requestData.MetricsCollection.Add(TelemetryDataConstants.TimeTakenToLoadAdaptersInSec, totalAdapterLoadTIme.TotalSeconds); 253totalAdapterRunTime.TotalSeconds); 254totalTimeTakenByAdapters += totalAdapterRunTime.TotalSeconds;
Execution\BaseRunTests.cs (2)
529_requestData.MetricsCollection.Add($"{TelemetryDataConstants.TimeTakenToRunTestsByAnAdapter}.{executorUri}", totalTimeTaken.TotalSeconds); 530totalTimeTakenByAdapters += totalTimeTaken.TotalSeconds;
Microsoft.TestPlatform.Extensions.BlameDataCollector (2)
BlameCollector.cs (2)
222if (_inactivityTimespan.TotalSeconds <= 90) 224value = ((int)_inactivityTimespan.TotalSeconds).ToString(CultureInfo.InvariantCulture);
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\DateAndTime.vb (1)
198Return CLng(Fix(tm.TotalSeconds()))
Microsoft.VisualStudio.TestPlatform.Client (4)
Discovery\DiscoveryRequest.cs (2)
302TelemetryDataConstants.TimeTakenInSecForDiscovery, discoveryFinalTimeTaken.TotalSeconds); 431discoveryCompletePayload.Metrics[TelemetryDataConstants.TimeTakenInSecForDiscovery] = discoveryFinalTimeTakenForDesignMode.TotalSeconds;
Execution\TestRunRequest.cs (2)
441_requestData.MetricsCollection.Add(TelemetryDataConstants.TimeTakenInSecForRun, executionTotalTimeTaken.TotalSeconds); 606testRunCompletePayload.TestRunCompleteArgs.Metrics[TelemetryDataConstants.TimeTakenInSecForRun] = executionTotalTimeTakenForDesignMode.TotalSeconds;
Mono.Cecil (1)
Mono.Cecil\ModuleDefinition.cs (1)
1327 return (uint) DateTime.UtcNow.Subtract (new DateTime (1970, 1, 1)).TotalSeconds;
NuGet.Commands (3)
RestoreCommand\Utility\AuditUtility.cs (3)
201DownloadDurationSeconds = stopwatch.Elapsed.TotalSeconds; 262CheckPackagesDurationSeconds = stopwatch.Elapsed.TotalSeconds; 327GenerateOutputDurationSeconds = stopwatch.Elapsed.TotalSeconds;
NuGet.Common (6)
DatetimeUtility.cs (2)
29if (time.TotalSeconds < 1) 46result = time.TotalSeconds;
Telemetry\TelemetryActivity.cs (3)
96_telemetryActivity.TelemetryEvent[_propertyName] = _stopwatch.Elapsed.TotalSeconds; 123TelemetryEvent["Duration"] = _stopwatch.Elapsed.TotalSeconds; 137TelemetryEvent[interval.Item1] = interval.Item2.TotalSeconds;
Telemetry\TelemetryServiceUtility.cs (1)
51return GetTimerElapsedTime().TotalSeconds;
NuGet.PackageManagement (10)
Audit\AuditChecker.cs (2)
71double downloadDurationInSeconds = stopwatch.Elapsed.TotalSeconds; 109double checkPackagesDurationInSeconds = stopwatch.Elapsed.TotalSeconds;
NuGetPackageManager.cs (8)
1172stopWatch.Elapsed.TotalSeconds); 1264stopWatch.Elapsed.TotalSeconds); 1303stopWatch.Elapsed.TotalSeconds); 1870stopWatch.Elapsed.TotalSeconds); 1939stopWatch.Elapsed.TotalSeconds); 2033stopWatch.Elapsed.TotalSeconds); 2813TelemetryConstants.ExecuteActionStepName, stopWatch.Elapsed.TotalSeconds); 3177TelemetryConstants.PreviewBuildIntegratedStepName, stopWatch.Elapsed.TotalSeconds);
NuGet.Protocol (2)
HttpSource\HttpRetryHandler.cs (1)
205retryAfter.Value.TotalSeconds));
Plugins\PluginFactory.cs (1)
293stopwatch.Elapsed.TotalSeconds,
PresentationBuildTasks (1)
MS\Internal\MarkupCompiler\VersionHelper.cs (1)
196int revision = (int)time.TimeOfDay.TotalSeconds / 2;
PresentationCore (1)
System\Windows\InterOp\HwndTarget.cs (1)
985bool fWithinPresentRetryWindow = delta.TotalSeconds < _allowedPresentFailureDelay;
ReachFramework (2)
AlphaFlattener\Utility.cs (2)
38 s_total += elapsed.TotalSeconds; 43Console.WriteLine("{0} {1} {2}", s_count, elapsed.TotalSeconds, s_total);
System.ComponentModel.TypeConverter (4)
System\ComponentModel\DateTimeConverter.cs (2)
97if (dt.TimeOfDay.TotalSeconds == 0) 108if (dt.TimeOfDay.TotalSeconds == 0)
System\ComponentModel\DateTimeOffsetConverter.cs (2)
105if (dto.TimeOfDay.TotalSeconds == 0) 116if (dto.TimeOfDay.TotalSeconds == 0)
System.Configuration.ConfigurationManager (1)
System\Configuration\TimeSpanSecondsConverter.cs (1)
15long data = (long)((TimeSpan)value).TotalSeconds;
System.Diagnostics.DiagnosticSource (12)
System\Diagnostics\Metrics\AggregationManager.cs (6)
137Debug.Assert(collectionPeriod.TotalSeconds >= MinCollectionTimeSecs); 177Debug.Assert(CollectionPeriod.TotalSeconds >= MinCollectionTimeSecs); 183TimeSpan delayTime = CalculateDelayTime(CollectionPeriod.TotalSeconds); 229double secsSinceStart = (now - _startTime).TotalSeconds; 256collectionIntervalSecs = CollectionPeriod.TotalSeconds; 292double collectionIntervalSecs = CollectionPeriod.TotalSeconds;
System\Diagnostics\Metrics\MetricsEventSource.cs (2)
404validShared = SetSharedRefreshIntervalSecs(command.Arguments!, _aggregationManager.CollectionPeriod.TotalSeconds, out refreshInterval) ? validShared : false; 435Parent.MultipleSessionsConfiguredIncorrectlyError(clientId!, _aggregationManager.MaxHistograms.ToString(), maxHistograms.ToString(), _aggregationManager.MaxTimeSeries.ToString(), maxTimeSeries.ToString(), _aggregationManager.CollectionPeriod.TotalSeconds.ToString(), refreshInterval.ToString());
System\Diagnostics\Metrics\RuntimeMetrics.cs (4)
70() => GC.GetTotalPauseDuration().TotalSeconds, 88() => Runtime.JitInfo.GetCompilationTime().TotalSeconds, 181yield return new(processCpuUsage.UserTime.TotalSeconds, [new KeyValuePair<string, object?>("cpu.mode", "user")]); 182yield return new(processCpuUsage.PrivilegedTime.TotalSeconds, [new KeyValuePair<string, object?>("cpu.mode", "system")]);
System.DirectoryServices (6)
System\DirectoryServices\DirectorySearcher.cs (6)
177if (value.TotalSeconds > int.MaxValue) 290if (value.TotalSeconds > int.MaxValue) 309if (value.TotalSeconds > int.MaxValue) 684info.vValue = new AdsValueHelper((int)ServerTimeLimit.TotalSeconds).GetStruct(); 699info.vValue = new AdsValueHelper((int)ClientTimeout.TotalSeconds).GetStruct(); 717info.vValue = new AdsValueHelper((int)ServerPageTimeLimit.TotalSeconds).GetStruct();
System.DirectoryServices.Protocols (4)
System\DirectoryServices\Protocols\common\DirectoryRequest.cs (1)
303if (value.TotalSeconds > int.MaxValue)
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (1)
113if (value.TotalSeconds > int.MaxValue)
System\DirectoryServices\Protocols\ldap\LdapSessionOptions.cs (2)
226if (value.TotalSeconds > int.MaxValue) 407if (value.TotalSeconds > int.MaxValue)
System.Management (2)
System\Management\ManagementQuery.cs (2)
2976s = s + " within " + withinInterval.TotalSeconds.ToString((IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(double))); 2985s = s + " group within " + groupWithinInterval.TotalSeconds.ToString((IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(double)));
System.Net.Http (14)
System\Net\Http\Headers\CacheControlHeaderValue.cs (4)
224int maxAge = (int)_maxAge.TotalSeconds; 241int sharedMaxAge = (int)_sharedMaxAge.TotalSeconds; 260int maxStaleLimit = (int)_maxStaleLimit.TotalSeconds; 278int minFresh = (int)_minFresh.TotalSeconds;
System\Net\Http\Headers\RetryConditionHeaderValue.cs (2)
31ArgumentOutOfRangeException.ThrowIfGreaterThan(delta.TotalSeconds, int.MaxValue); 46? ((int)_delta.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo)
System\Net\Http\Headers\TimeSpanHeaderParser.cs (1)
22return ((int)((TimeSpan)value).TotalSeconds).ToString(NumberFormatInfo.InvariantInfo);
System\Net\Http\HttpClient.cs (2)
626Debug.Assert(_timeout.TotalSeconds > 0); 627e = toThrow = new TaskCanceledException(SR.Format(SR.net_http_request_timedout, _timeout.TotalSeconds), new TimeoutException(e.Message, e), oce.CancellationToken);
System\Net\Http\Metrics\HttpMetricsEnrichmentContext.cs (1)
121requestDuration.Record(durationTime.TotalSeconds, context._tags);
System\Net\Http\Metrics\MetricsHandler.cs (1)
250_requestsDuration.Record(durationTime.TotalSeconds, tags);
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (2)
94_cleanPoolTimeout = timerPeriod.TotalSeconds >= MinScavengeSeconds ? timerPeriod : TimeSpan.FromSeconds(MinScavengeSeconds); 103if (_cleanPoolTimeout.TotalSeconds > MaxEvictionIntervalSeconds)
System\Net\Http\SocketsHttpHandler\Metrics\SocketsHttpHandlerMetrics.cs (1)
196RequestsQueueDuration.Record(duration.TotalSeconds, tags);
System.Net.Http.Json (1)
System\Net\Http\Json\HttpClientJsonExtensions.cs (1)
96string message = SR.Format(SR.net_http_request_timedout, client.Timeout.TotalSeconds);
System.Net.Http.WinHttpHandler (1)
System\Net\Http\WinHttpHandler.cs (1)
53private static readonly long s_staleTimeout = (long)(s_cleanCachedCertificateTimeout.TotalSeconds * Stopwatch.Frequency);
System.Net.HttpListener (1)
System\Net\Managed\HttpListenerTimeoutManager.Managed.cs (1)
86long timeoutValue = Convert.ToInt64(value.TotalSeconds);
System.Net.NameResolution (2)
System\Net\NameResolutionMetrics.cs (2)
35s_lookupDuration.Record(duration.TotalSeconds, hostNameTag); 41s_lookupDuration.Record(duration.TotalSeconds, hostNameTag, errorTypeTag);
System.Net.Primitives (1)
System\Net\Cookie.cs (1)
727int seconds = (int)(Expires.ToUniversalTime() - DateTime.UtcNow).TotalSeconds;
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\CounterGroup.cs (1)
271counter.WritePayload((float)elapsed.TotalSeconds, (int)pollingInterval.TotalMilliseconds);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.cs (1)
405double elapsedSeconds = Stopwatch.GetElapsedTime(_currentSampleStartTime, endTime).TotalSeconds;
vstest.console (1)
Internal\ConsoleLogger.cs (1)
262Output.Information(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ExecutionTimeFormatString, timeSpan.TotalSeconds, CommandLineResources.Seconds));
vstest.console.arm64 (1)
src\vstest\src\vstest.console\Internal\ConsoleLogger.cs (1)
262Output.Information(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ExecutionTimeFormatString, timeSpan.TotalSeconds, CommandLineResources.Seconds));