520 references to TotalMilliseconds
aspire (16)
Agents\AspireSkills\AspireSkillsInstaller.cs (2)
885retryDelay.TotalMilliseconds, 895retryDelay.TotalMilliseconds);
Backchannel\AuxiliaryBackchannelMonitor.cs (4)
432delay = TimeSpan.FromMilliseconds(Math.Min(delay.TotalMilliseconds * 2, maxDelay.TotalMilliseconds)); 466if (socketAge.TotalMilliseconds < 500) 468logger.LogDebug("Socket connection refused but file is new ({Age}ms old), will retry: {SocketPath}", (int)socketAge.TotalMilliseconds, socketPath);
Bundles\BundleService.cs (3)
420delay.TotalMilliseconds, 424delay.TotalMilliseconds * 2, 425s_directoryMoveMaxRetryDelay.TotalMilliseconds));
Projects\RunningInstanceManager.cs (1)
129while ((_timeProvider.GetUtcNow() - startTime).TotalMilliseconds < ProcessTerminationTimeoutMs)
src\Shared\ProcessStartTimeHelper.cs (1)
298var toleranceMilliseconds = (long)(tolerance ?? StableStartTimeMatchTolerance).TotalMilliseconds;
Telemetry\ProfilingTelemetry.cs (1)
1098public void SetProfileCaptureDelay(TimeSpan delay) => SetTag(Tags.ProfileCaptureDelayMilliseconds, delay.TotalMilliseconds);
Utils\ConsoleActivityLogger.cs (4)
691startPosition = start.TotalMilliseconds / totalTimeline.TotalMilliseconds * (width - 1); 692endPosition = end.TotalMilliseconds / totalTimeline.TotalMilliseconds * (width - 1);
aspire-managed (1)
src\Shared\ProcessStartTimeHelper.cs (1)
298var toleranceMilliseconds = (long)(tolerance ?? StableStartTimeMatchTolerance).TotalMilliseconds;
Aspire.Acquisition.Tests (1)
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
87cts.CancelAfter((int)_timeout.Value.TotalMilliseconds);
Aspire.Cli.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
212? $"The operation timed out after reaching the limit of {timeout.TotalMilliseconds}ms." 213: $"The operation at {filePath}:{lineNumber} timed out after reaching the limit of {timeout.TotalMilliseconds}ms.";
Aspire.Dashboard (7)
Components\Pages\TraceDetail.razor.cs (1)
920var duration = span.Duration.TotalMilliseconds;
Model\Otlp\SpanWaterfallViewModel.cs (4)
187var rootDuration = span.Trace.Duration.TotalMilliseconds; 189var leftOffset = CalculatePercent(relativeStart.TotalMilliseconds, rootDuration); 190var width = CalculatePercent(span.Duration.TotalMilliseconds, rootDuration); 212LeftOffset = CalculatePercent(logRelativeStart.TotalMilliseconds, rootDuration)
Otlp\Model\OtlpSpan.cs (1)
243KnownTraceFields.DurationField => span.Duration.TotalMilliseconds.ToString("R", CultureInfo.InvariantCulture),
Utils\DashboardUIHelpers.cs (1)
127var milliseconds = duration.TotalMilliseconds;
Aspire.Dashboard.Components.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
212? $"The operation timed out after reaching the limit of {timeout.TotalMilliseconds}ms." 213: $"The operation at {filePath}:{lineNumber} timed out after reaching the limit of {timeout.TotalMilliseconds}ms.";
Aspire.Dashboard.Tests (4)
tests\Shared\AsyncTestHelpers.cs (2)
212? $"The operation timed out after reaching the limit of {timeout.TotalMilliseconds}ms." 213: $"The operation at {filePath}:{lineNumber} timed out after reaching the limit of {timeout.TotalMilliseconds}ms.";
tests\Shared\Telemetry\InMemoryTelemetryRepository.cs (2)
1133if (filter.IsTraceDurationFilter() && !filter.HasNumericMatch(trace.Duration.TotalMilliseconds)) 1187if (filter.IsDurationFilter && !filter.ApplyDuration(trace.Duration.TotalMilliseconds))
Aspire.EndToEnd.Tests (1)
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
87cts.CancelAfter((int)_timeout.Value.TotalMilliseconds);
Aspire.Hosting (4)
Dcp\DcpPipelineBuilder.cs (2)
53retry.Duration.TotalMilliseconds, 78retry.Duration.TotalMilliseconds,
Diagnostics\ProfilingTelemetry.cs (1)
819[Tags.DcpApiRetryDelayMilliseconds] = retryDelay.TotalMilliseconds,
src\Shared\ProcessStartTimeHelper.cs (1)
298var toleranceMilliseconds = (long)(tolerance ?? StableStartTimeMatchTolerance).TotalMilliseconds;
Aspire.Hosting.Azure.Kusto.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
212? $"The operation timed out after reaching the limit of {timeout.TotalMilliseconds}ms." 213: $"The operation at {filePath}:{lineNumber} timed out after reaching the limit of {timeout.TotalMilliseconds}ms.";
Aspire.Hosting.Blazor.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
212? $"The operation timed out after reaching the limit of {timeout.TotalMilliseconds}ms." 213: $"The operation at {filePath}:{lineNumber} timed out after reaching the limit of {timeout.TotalMilliseconds}ms.";
Aspire.Hosting.Browsers.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
212? $"The operation timed out after reaching the limit of {timeout.TotalMilliseconds}ms." 213: $"The operation at {filePath}:{lineNumber} timed out after reaching the limit of {timeout.TotalMilliseconds}ms.";
Aspire.Hosting.Containers.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
212? $"The operation timed out after reaching the limit of {timeout.TotalMilliseconds}ms." 213: $"The operation at {filePath}:{lineNumber} timed out after reaching the limit of {timeout.TotalMilliseconds}ms.";
Aspire.Hosting.DevTunnels.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
212? $"The operation timed out after reaching the limit of {timeout.TotalMilliseconds}ms." 213: $"The operation at {filePath}:{lineNumber} timed out after reaching the limit of {timeout.TotalMilliseconds}ms.";
Aspire.Hosting.Dotnet.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
212? $"The operation timed out after reaching the limit of {timeout.TotalMilliseconds}ms." 213: $"The operation at {filePath}:{lineNumber} timed out after reaching the limit of {timeout.TotalMilliseconds}ms.";
Aspire.Hosting.DotnetTool.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
212? $"The operation timed out after reaching the limit of {timeout.TotalMilliseconds}ms." 213: $"The operation at {filePath}:{lineNumber} timed out after reaching the limit of {timeout.TotalMilliseconds}ms.";
Aspire.Hosting.Foundry.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
212? $"The operation timed out after reaching the limit of {timeout.TotalMilliseconds}ms." 213: $"The operation at {filePath}:{lineNumber} timed out after reaching the limit of {timeout.TotalMilliseconds}ms.";
Aspire.Hosting.Garnet (1)
GarnetBuilderExtensions.cs (1)
161var interval = (persistenceAnnotation.Interval ?? TimeSpan.FromSeconds(60)).TotalMilliseconds.ToString(CultureInfo.InvariantCulture);
Aspire.Hosting.GitHub.Models.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
212? $"The operation timed out after reaching the limit of {timeout.TotalMilliseconds}ms." 213: $"The operation at {filePath}:{lineNumber} timed out after reaching the limit of {timeout.TotalMilliseconds}ms.";
Aspire.Hosting.JavaScript.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
212? $"The operation timed out after reaching the limit of {timeout.TotalMilliseconds}ms." 213: $"The operation at {filePath}:{lineNumber} timed out after reaching the limit of {timeout.TotalMilliseconds}ms.";
Aspire.Hosting.Kafka.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
212? $"The operation timed out after reaching the limit of {timeout.TotalMilliseconds}ms." 213: $"The operation at {filePath}:{lineNumber} timed out after reaching the limit of {timeout.TotalMilliseconds}ms.";
Aspire.Hosting.MySql.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
212? $"The operation timed out after reaching the limit of {timeout.TotalMilliseconds}ms." 213: $"The operation at {filePath}:{lineNumber} timed out after reaching the limit of {timeout.TotalMilliseconds}ms.";
Aspire.Hosting.OpenAI.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
212? $"The operation timed out after reaching the limit of {timeout.TotalMilliseconds}ms." 213: $"The operation at {filePath}:{lineNumber} timed out after reaching the limit of {timeout.TotalMilliseconds}ms.";
Aspire.Hosting.PostgreSQL.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
212? $"The operation timed out after reaching the limit of {timeout.TotalMilliseconds}ms." 213: $"The operation at {filePath}:{lineNumber} timed out after reaching the limit of {timeout.TotalMilliseconds}ms.";
Aspire.Hosting.RabbitMQ.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
212? $"The operation timed out after reaching the limit of {timeout.TotalMilliseconds}ms." 213: $"The operation at {filePath}:{lineNumber} timed out after reaching the limit of {timeout.TotalMilliseconds}ms.";
Aspire.Hosting.Radius (1)
Secrets\RadiusSecretStoreExtensions.cs (1)
284if (timeout <= TimeSpan.Zero || timeout.TotalMilliseconds > int.MaxValue)
Aspire.Hosting.RemoteHost (2)
Ats\AtsMarshaller.cs (1)
210return JsonValue.Create(((TimeSpan)value).TotalMilliseconds);
src\Shared\ProcessStartTimeHelper.cs (1)
298var toleranceMilliseconds = (long)(tolerance ?? StableStartTimeMatchTolerance).TotalMilliseconds;
Aspire.Hosting.Testing.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
212? $"The operation timed out after reaching the limit of {timeout.TotalMilliseconds}ms." 213: $"The operation at {filePath}:{lineNumber} timed out after reaching the limit of {timeout.TotalMilliseconds}ms.";
Aspire.Hosting.Tests (3)
tests\Shared\AsyncTestHelpers.cs (2)
212? $"The operation timed out after reaching the limit of {timeout.TotalMilliseconds}ms." 213: $"The operation at {filePath}:{lineNumber} timed out after reaching the limit of {timeout.TotalMilliseconds}ms.";
WithTerminalTests.cs (1)
543ProcessStartTimeHelper.GetCurrentProcessStartTimeUnixMilliseconds() - (long)TimeSpan.FromMinutes(1).TotalMilliseconds;
Aspire.Hosting.Valkey.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
212? $"The operation timed out after reaching the limit of {timeout.TotalMilliseconds}ms." 213: $"The operation at {filePath}:{lineNumber} timed out after reaching the limit of {timeout.TotalMilliseconds}ms.";
Aspire.Playground.Tests (3)
tests\Aspire.TestUtilities\TestcontainersPodmanConfiguration.cs (1)
262if (!process.WaitForExit((int)s_podmanInspectTimeout.TotalMilliseconds))
tests\Shared\AsyncTestHelpers.cs (2)
212? $"The operation timed out after reaching the limit of {timeout.TotalMilliseconds}ms." 213: $"The operation at {filePath}:{lineNumber} timed out after reaching the limit of {timeout.TotalMilliseconds}ms.";
Aspire.Templates.Tests (1)
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
87cts.CancelAfter((int)_timeout.Value.TotalMilliseconds);
Aspire.TerminalHost (1)
src\Shared\ProcessStartTimeHelper.cs (1)
298var toleranceMilliseconds = (long)(tolerance ?? StableStartTimeMatchTolerance).TotalMilliseconds;
Aspire.TerminalHost.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
212? $"The operation timed out after reaching the limit of {timeout.TotalMilliseconds}ms." 213: $"The operation at {filePath}:{lineNumber} timed out after reaching the limit of {timeout.TotalMilliseconds}ms.";
Aspire.TestUtilities (1)
TestcontainersPodmanConfiguration.cs (1)
262if (!process.WaitForExit((int)s_podmanInspectTimeout.TotalMilliseconds))
Client.ExpectedExceptions.IntegrationTests (4)
ExpectedExceptionTests.4.0.0.cs (2)
274if ((endOfOpeningStall - startOfOpeningStall).TotalMilliseconds > timeoutMs) 344double elapsedMs = (DateTime.Now - endOfOpeningStall).TotalMilliseconds;
ExpectedExceptionTests.4.1.0.cs (2)
524if ((endOfOpeningStall - startOfOpeningStall).TotalMilliseconds > timeoutMs) 594double elapsedMs = (DateTime.Now - endOfOpeningStall).TotalMilliseconds;
dotnet (1)
Commands\Test\MTP\ArtifactPostProcessingTelemetry.cs (1)
69["duration_ms"] = ((long)duration.TotalMilliseconds).ToString(CultureInfo.InvariantCulture),
dotnet-getdocument (1)
Exe.cs (1)
52if (!process.WaitForExit((int)(TimeSpan.FromMinutes(2).TotalMilliseconds)))
dotnet-svcutil-lib (3)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\TimeoutHelper.cs (1)
50_cancellationToken = await TimeoutTokenSource.FromTimeoutAsync((int)timeout.TotalMilliseconds);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ReliableSessionBindingElement.cs (1)
453UInt64 milliseconds = Convert.ToUInt64(timeSpan.TotalMilliseconds);
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\TraceUtility.cs (1)
76return (long)elapsedTime.TotalMilliseconds;
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Dependencies\Threading\TestHooks\IExpeditableDelaySource.cs (1)
26/// <para>The <paramref name="delay"/> argument's <see cref="TimeSpan.TotalMilliseconds"/> property is greater than <see cref="int.MaxValue"/>.</para>
Infrastructure.Common (1)
xunit\WcfTestCase.cs (1)
58(int)_failFastDuration.TotalMilliseconds,
Infrastructure.Tests (2)
PowerShellScripts\PowerShellCommand.cs (1)
61cts.CancelAfter((int)_timeout.Value.TotalMilliseconds);
WorkflowScripts\NodeCommand.cs (1)
55cts.CancelAfter((int)_timeout.Value.TotalMilliseconds);
Microsoft.AspNetCore.Components.Endpoints (2)
BrowserConfiguration\BrowserOptionsJsonConverters.cs (1)
20writer.WriteNumberValue((long)timeSpan.TotalMilliseconds);
DependencyInjection\RazorComponentsServiceOptions.cs (1)
93ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(value.TotalMilliseconds, 0);
Microsoft.AspNetCore.Components.Server (2)
Circuits\RemoteRenderer.cs (2)
409=> CompletingBatchWithError(logger, batchId, errorMessage, elapsedTime.TotalMilliseconds); 415=> CompletingBatchWithoutError(logger, batchId, elapsedTime.TotalMilliseconds);
Microsoft.AspNetCore.Components.Server.AutoPause (1)
AutoPauseBrowserOptionsExtensions.cs (1)
29var delayMilliseconds = Math.Ceiling(settings.HiddenDelay.TotalMilliseconds);
Microsoft.AspNetCore.Components.Testing (1)
Infrastructure\ReadinessNotificationService.cs (1)
67delay = TimeSpan.FromMilliseconds(delay.TotalMilliseconds * 2);
Microsoft.AspNetCore.Hosting (2)
Internal\HostingRequestFinishedLog.cs (2)
350 => new KeyValuePair<string, object?>("ElapsedMilliseconds", Elapsed.TotalMilliseconds), 66_cachedToString = $"Request finished {request.Protocol} {request.Method} {request.Scheme}://{request.Host.Value}{request.PathBase.Value}{request.Path.Value}{request.QueryString.Value} - {response.StatusCode.ToString(CultureInfo.InvariantCulture)} {ValueOrEmptyMarker(response.ContentLength)} {EscapedValueOrEmptyMarker(response.ContentType)} {Elapsed.TotalMilliseconds.ToString("0.0000", CultureInfo.InvariantCulture)}ms";
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionsEventSource.cs (1)
46_connectionDuration!.WriteMetric(duration.TotalMilliseconds);
Microsoft.AspNetCore.HttpLogging (2)
HttpLoggingInterceptorContext.cs (1)
150return TimeProvider.GetElapsedTime(StartTimestamp).TotalMilliseconds;
W3CLoggingMiddleware.cs (1)
219shouldLog |= AddToList(elements, _timeTakenIndex, stopWatch.GetElapsedTime().TotalMilliseconds.ToString(CultureInfo.InvariantCulture));
Microsoft.AspNetCore.Identity (2)
PasskeyHandler.cs (2)
63Timeout = (uint)_options.AuthenticatorTimeout.TotalMilliseconds, 121Timeout = (uint)_options.AuthenticatorTimeout.TotalMilliseconds,
Microsoft.AspNetCore.InternalTesting (2)
src\aspnetcore\src\Shared\TaskExtensions.cs (2)
145? $"The operation timed out after reaching the limit of {timeout.TotalMilliseconds}ms." 146: $"The operation at {filePath}:{lineNumber} timed out after reaching the limit of {timeout.TotalMilliseconds}ms.";
Microsoft.AspNetCore.Mvc.Core (3)
Infrastructure\ControllerActionInvoker.cs (1)
652ActionMethodExecuted(logger, actionName, Convert.ToString(result, CultureInfo.InvariantCulture), timeSpan.TotalMilliseconds);
Infrastructure\ResourceInvoker.Log.cs (2)
105PageExecuted(logger, action.DisplayName, timeSpan.TotalMilliseconds); 109ActionExecuted(logger, action.DisplayName, timeSpan.TotalMilliseconds);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
RuntimeViewCompiler.cs (1)
424GeneratedCodeToAssemblyCompilationEnd(logger, filePath, elapsed.TotalMilliseconds);
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
PartialViewResultExecutor.cs (2)
200PartialViewFound(logger, view.Path, timespan.TotalMilliseconds); 211PartialViewResultExecuted(logger, partialViewName, timespan.TotalMilliseconds);
ViewComponents\DefaultViewComponentInvoker.cs (1)
263timespan.TotalMilliseconds,
ViewResultExecutor.cs (2)
200ViewFound(logger, view.Path, timespan.TotalMilliseconds); 211ViewResultExecuted(logger, viewName, timespan.TotalMilliseconds);
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (1)
RedisOutputCacheStore.cs (1)
310(long)((DateTime.UtcNow + timeout) - DateTime.UnixEpoch).TotalMilliseconds;
Microsoft.AspNetCore.Server.IntegrationTesting (3)
ApplicationPublisher.cs (1)
80if (hostProcess.WaitForExit(milliseconds: (int)timeout.TotalMilliseconds))
Deployers\NginxDeployer.cs (1)
20private readonly int _waitTime = (int)TimeSpan.FromSeconds(30).TotalMilliseconds;
src\aspnetcore\src\Shared\Process\ProcessExtensions.cs (1)
109if (process.WaitForExit((int)timeout.TotalMilliseconds))
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (1)
TlsEventPump.cs (1)
150: (long)handshakeTimeout.TotalMilliseconds;
Microsoft.AspNetCore.SignalR.Client.Core (2)
HubConnection.cs (1)
2694$"Server timeout ({_hubConnection.ServerTimeout.TotalMilliseconds:0.00}ms) elapsed without receiving a message from the server.");
HubConnection.Log.cs (1)
202StartingServerTimeoutTimer(logger, serverTimeout.TotalMilliseconds);
Microsoft.AspNetCore.SignalR.Specification.Tests (4)
Internal\TaskExtensions.cs (2)
62? $"The operation timed out after reaching the limit of {timeout.TotalMilliseconds}ms." 63: $"The operation at {filePath}:{lineNumber} timed out after reaching the limit of {timeout.TotalMilliseconds}ms.";
src\aspnetcore\src\Shared\TaskExtensions.cs (2)
145? $"The operation timed out after reaching the limit of {timeout.TotalMilliseconds}ms." 146: $"The operation at {filePath}:{lineNumber} timed out after reaching the limit of {timeout.TotalMilliseconds}ms.";
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
Internal\AckHandler.cs (1)
13private readonly long _ackThreshold = (long)TimeSpan.FromSeconds(30).TotalMilliseconds;
Microsoft.Build (13)
BackEnd\BuildManager\BuildManager.cs (1)
696_buildTelemetry.CoordinatorWaitDurationMs = waitDuration.TotalMilliseconds;
BackEnd\Components\Communications\NodeEndpointInProc.cs (1)
400if (!_packetPump.Join((int)new TimeSpan(0, 0, BuildParameters.EndpointShutdownTimeout).TotalMilliseconds))
BackEnd\Components\Scheduler\Scheduler.cs (2)
2527double utilizationPercent = (double)nodeActiveTimes[i].TotalMilliseconds / (double)totalDuration.TotalMilliseconds;
BackEnd\Components\Scheduler\SchedulingPlan.cs (1)
466accumulatedTimeByConfiguration[request.BuildRequest.ConfigurationId] = accumulatedTime + request.GetTimeSpentInState(SchedulableRequestState.Executing).TotalMilliseconds;
Evaluation\Profiler\EvaluationLocationPrettyPrinterBase.cs (3)
36return Math.Round(timeSpan.TotalMilliseconds, 0, MidpointRounding.AwayFromZero); 42var percentage = (time.TotalMilliseconds / total.TotalMilliseconds) * 100;
Logging\BaseConsoleLogger.cs (1)
811"{0,5}", Math.Round(elapsedTime.TotalMilliseconds, 0));
Logging\ParallelLogger\ParallelConsoleLogger.cs (1)
1766"{0,5}", Math.Round(elapsedTime.TotalMilliseconds, 0));
Logging\ProfilerLogger.cs (2)
264return profiledData.InclusiveTime.TotalMilliseconds < 1 || 265profiledData.ExclusiveTime.TotalMilliseconds < 1;
src\msbuild\src\Shared\NodeEndpointOutOfProcBase.cs (1)
401int waitTimeRemaining = Math.Max(0, CommunicationsUtilities.NodeConnectionTimeout - (int)usedWaitTime.TotalMilliseconds);
Microsoft.Build.Framework (9)
Telemetry\BuildCheckTelemetry.cs (2)
60properties["TotalRuntimeInMilliseconds"] = totalRuntime.TotalMilliseconds.ToString(CultureInfo.InvariantCulture); 87properties["TotalRuntimeInMilliseconds"] = buildCheckRuleTelemetryData.TotalRuntime.TotalMilliseconds.ToString(CultureInfo.InvariantCulture);
Telemetry\BuildTelemetry.cs (4)
179telemetryItems.Add(TelemetryConstants.BuildDurationPropertyName, (FinishedAt.Value - StartAt.Value).TotalMilliseconds); 184telemetryItems.Add(TelemetryConstants.InnerBuildDurationPropertyName, (FinishedAt.Value - InnerStartAt.Value).TotalMilliseconds); 236(FinishedAt.Value - StartAt.Value).TotalMilliseconds.ToString(CultureInfo.InvariantCulture); 242(FinishedAt.Value - InnerStartAt.Value).TotalMilliseconds.ToString(CultureInfo.InvariantCulture);
Telemetry\TelemetryDataUtils.cs (3)
101valuePair.Value.CumulativeExecutionTime.TotalMilliseconds, 215total.CumulativeExecutionTime.TotalMilliseconds, 222fromNuget.CumulativeExecutionTime.TotalMilliseconds,
Microsoft.Build.Tasks.Core (1)
src\msbuild\src\Shared\NodePipeServer.cs (1)
94int waitTimeRemaining = Math.Max(0, CommunicationsUtilities.NodeConnectionTimeout - (int)usedWaitTime.TotalMilliseconds);
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Dependencies\Threading\TestHooks\IExpeditableDelaySource.cs (1)
26/// <para>The <paramref name="delay"/> argument's <see cref="TimeSpan.TotalMilliseconds"/> property is greater than <see cref="int.MaxValue"/>.</para>
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Dependencies\Threading\TestHooks\IExpeditableDelaySource.cs (1)
26/// <para>The <paramref name="delay"/> argument's <see cref="TimeSpan.TotalMilliseconds"/> property is greater than <see cref="int.MaxValue"/>.</para>
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Dependencies\Threading\TestHooks\IExpeditableDelaySource.cs (1)
26/// <para>The <paramref name="delay"/> argument's <see cref="TimeSpan.TotalMilliseconds"/> property is greater than <see cref="int.MaxValue"/>.</para>
Microsoft.CodeAnalysis.Features (6)
ChangeSignature\ChangeSignatureTelemetryLogger.cs (1)
147s_statisticLogAggregator.AddDataPoint(ActionInfo.CommittedSessionCommitElapsedMS, (int)elapsedTime.TotalMilliseconds);
Copilot\CopilotChangeAnalysisUtilities.cs (1)
120return timeSpan.TotalMilliseconds.ToString("G17", CultureInfo.InvariantCulture);
EditAndContinue\DebuggingSessionTelemetry.cs (2)
129map["EmitDifferenceMilliseconds"] = (long)editSessionData.EmitDifferenceTime.TotalMilliseconds; 135map["TotalAnalysisMilliseconds"] = (long)editSessionData.AnalysisTime.TotalMilliseconds;
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingIdleProcessor.cs (2)
106var delayTimeSpan = TimeSpan.FromMilliseconds(Math.Max(s_minimumDelay.TotalMilliseconds, timeLeft.TotalMilliseconds));
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Dependencies\Threading\TestHooks\IExpeditableDelaySource.cs (1)
26/// <para>The <paramref name="delay"/> argument's <see cref="TimeSpan.TotalMilliseconds"/> property is greater than <see cref="int.MaxValue"/>.</para>
Microsoft.CodeAnalysis.Workspaces (3)
Log\HistogramLogAggregator.cs (1)
45counter.IncreaseCount((int)timeSpan.TotalMilliseconds);
Log\StatisticLogAggregator.cs (1)
22AddDataPoint(key, (int)timeSpan.TotalMilliseconds);
src\roslyn\src\Dependencies\Threading\TestHooks\IExpeditableDelaySource.cs (1)
26/// <para>The <paramref name="delay"/> argument's <see cref="TimeSpan.TotalMilliseconds"/> property is greater than <see cref="int.MaxValue"/>.</para>
Microsoft.Diagnostics.NETCore.Client (1)
DiagnosticsIpc\IpcTransport.cs (1)
70namedPipe.Connect((int)timeout.TotalMilliseconds);
Microsoft.DotNet.Cli.Definitions (1)
Commands\Test\TestCommandDefinition.MicrosoftTestingPlatform.cs (1)
349if (timeout <= TimeSpan.Zero || timeout.TotalMilliseconds > MaxSupportedTimeoutMilliseconds)
Microsoft.DotNet.HotReload.Watch (1)
Process\ProcessRunner.cs (1)
248if (processCleanupTimeout.TotalMilliseconds == 0 ||
Microsoft.Extensions.AI.Evaluation (1)
Utilities\TimingHelper.cs (1)
14duration.TotalMilliseconds.ToString("F2", CultureInfo.InvariantCulture);
Microsoft.Extensions.AI.Evaluation.Console (1)
parent\Microsoft.Extensions.AI.Evaluation\Utilities\TimingHelper.cs (1)
14duration.TotalMilliseconds.ToString("F2", CultureInfo.InvariantCulture);
Microsoft.Extensions.AI.Evaluation.NLP (1)
parent\Microsoft.Extensions.AI.Evaluation\Utilities\TimingHelper.cs (1)
14duration.TotalMilliseconds.ToString("F2", CultureInfo.InvariantCulture);
Microsoft.Extensions.AI.Evaluation.Quality (1)
parent\Microsoft.Extensions.AI.Evaluation\Utilities\TimingHelper.cs (1)
14duration.TotalMilliseconds.ToString("F2", CultureInfo.InvariantCulture);
Microsoft.Extensions.AI.Evaluation.Safety (1)
parent\Microsoft.Extensions.AI.Evaluation\Utilities\TimingHelper.cs (1)
14duration.TotalMilliseconds.ToString("F2", CultureInfo.InvariantCulture);
Microsoft.Extensions.AI.Integration.Tests (2)
ChatClientIntegrationTests.cs (1)
952Assert.True(activity.Duration.TotalMilliseconds > 0);
EmbeddingGeneratorIntegrationTests.cs (1)
132Assert.True(activity.Duration.TotalMilliseconds > 0);
Microsoft.Extensions.AI.Tests (11)
ChatCompletion\OpenTelemetryChatClientTests.cs (1)
206Assert.True(activity.Duration.TotalMilliseconds > 0);
Embeddings\OpenTelemetryEmbeddingGeneratorTests.cs (1)
95Assert.True(activity.Duration.TotalMilliseconds > 0);
Files\OpenTelemetryHostedFileClientTests.cs (5)
60Assert.True(activity.Duration.TotalMilliseconds > 0); 112Assert.True(activity.Duration.TotalMilliseconds > 0); 152Assert.True(activity.Duration.TotalMilliseconds > 0); 210Assert.True(activity.Duration.TotalMilliseconds > 0); 248Assert.True(activity.Duration.TotalMilliseconds > 0);
Image\OpenTelemetryImageGeneratorTests.cs (1)
115Assert.True(activity.Duration.TotalMilliseconds > 0);
Realtime\OpenTelemetryRealtimeClientTests.cs (1)
146Assert.True(activity.Duration.TotalMilliseconds > 0);
SpeechToText\OpenTelemetrySpeechToTextClientTests.cs (1)
126Assert.True(activity.Duration.TotalMilliseconds > 0);
TextToSpeech\OpenTelemetryTextToSpeechClientTests.cs (1)
130Assert.True(activity.Duration.TotalMilliseconds > 0);
Microsoft.Extensions.Diagnostics.HealthChecks (9)
DefaultHealthCheckService.cs (5)
209HealthCheckProcessingEnd(logger, status, duration.TotalMilliseconds); 234HealthCheckEndHealthy(logger, registration.Name, entry.Status, duration.TotalMilliseconds, entry.Description); 238HealthCheckEndDegraded(logger, registration.Name, entry.Status, duration.TotalMilliseconds, entry.Description, entry.Exception); 242HealthCheckEndUnhealthy(logger, registration.Name, entry.Status, duration.TotalMilliseconds, entry.Description, entry.Exception); 251HealthCheckError(logger, registration.Name, duration.TotalMilliseconds, exception);
HealthCheckPublisherHostedService.cs (4)
256HealthCheckPublisherProcessingEnd(logger, duration.TotalMilliseconds, exception); 265HealthCheckPublisherEnd(logger, HealthCheckPublisher, duration.TotalMilliseconds); 271HealthCheckPublisherError(logger, publisher, duration.TotalMilliseconds, exception); 277HealthCheckPublisherTimeout(logger, publisher, duration.TotalMilliseconds);
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
ResourceMonitorService.cs (2)
80var bufferSize = (int)(_collectionWindow.TotalMilliseconds / _samplingInterval.TotalMilliseconds);
Microsoft.Extensions.Http (6)
DefaultHttpClientFactory.cs (2)
359_cleanupCycleEnd(logger, duration.TotalMilliseconds, disposedCount, finalCount, null); 375_handlerExpired(logger, lifetime.TotalMilliseconds, clientName, null);
Logging\LogHelper.cs (4)
89_requestEnd(logger, duration.TotalMilliseconds, (int)response.StatusCode, null); 103_requestFailed(logger, duration.TotalMilliseconds, exception); 128_requestPipelineEnd(logger, duration.TotalMilliseconds, (int)response.StatusCode, null); 142_requestPipelineFailed(logger, duration.TotalMilliseconds, exception);
Microsoft.Extensions.Http.Diagnostics (1)
Logging\Internal\HttpClientLogger.cs (1)
234logRecord.Duration = (long)elapsed.TotalMilliseconds;
Microsoft.Extensions.Http.Resilience (3)
Hedging\Internals\Validators\HttpStandardHedgingResilienceOptionsCustomValidator.cs (2)
24var timeout = TimeSpan.FromMilliseconds(options.Endpoint.Timeout.Timeout.TotalMilliseconds * CircuitBreakerTimeoutMultiplier); 36var maxHedgingDelay = TimeSpan.FromMilliseconds(options.Hedging.MaxHedgedAttempts * options.Hedging.Delay.TotalMilliseconds);
Resilience\Internal\Validators\HttpStandardResilienceOptionsCustomValidator.cs (1)
24if (options.CircuitBreaker.SamplingDuration < TimeSpan.FromMilliseconds(options.AttemptTimeout.Timeout.TotalMilliseconds * CircuitBreakerTimeoutMultiplier))
Microsoft.Extensions.Http.Resilience.Tests (7)
BuildTransitive\GrpcNetClientFactoryVersionTargetTests.cs (1)
306if (!process.WaitForExit((int)TimeSpan.FromSeconds(30).TotalMilliseconds))
Hedging\HttpStandardHedgingResilienceOptionsCustomValidatorTests.cs (3)
47options.Endpoint.CircuitBreaker.SamplingDuration = TimeSpan.FromMilliseconds(options.Endpoint.Timeout.Timeout.TotalMilliseconds * 2); 53TimeSpan.FromMilliseconds(options.Endpoint.Timeout.Timeout.TotalMilliseconds * 2) + TimeSpan.FromMilliseconds(10); 92options.Endpoint.CircuitBreaker.SamplingDuration = TimeSpan.FromMilliseconds(options.Endpoint.Timeout.Timeout.TotalMilliseconds / 2);
Resilience\HttpStandardResilienceOptionsCustomValidatorTests.cs (3)
54options.CircuitBreaker.SamplingDuration = TimeSpan.FromMilliseconds(options.AttemptTimeout.Timeout.TotalMilliseconds * 2); 59options.CircuitBreaker.SamplingDuration = TimeSpan.FromMilliseconds(options.AttemptTimeout.Timeout.TotalMilliseconds * 2) + TimeSpan.FromMilliseconds(10); 94options.CircuitBreaker.SamplingDuration = TimeSpan.FromMilliseconds(options.AttemptTimeout.Timeout.TotalMilliseconds / 2);
Microsoft.Extensions.ML (6)
ModelLoaders\FileModelLoader.cs (3)
186_fileLoadEnd(logger, filePath, duration.TotalMilliseconds, null); 191_fileReloadError(logger, filePath, duration.TotalMilliseconds, exception); 196_fileReLoad(logger, filePath, duration.TotalMilliseconds, null);
ModelLoaders\UriModelLoader.cs (3)
122_reloadTimer = new Timer(ReloadTimerTick, this, Convert.ToInt32(_timerPeriod.Value.TotalMilliseconds), Timeout.Infinite); 220_uriReloadEnd(logger, uri, duration.TotalMilliseconds, null); 225_uriReloadError(logger, uri, duration.TotalMilliseconds, exception);
Microsoft.Extensions.ServiceDiscovery.Dns (1)
DnsResolverOptionsValidator.cs (1)
35return ValidateOptionsResult.Fail($"{nameof(options.Timeout)} must not be greater than {s_maxTimeout.TotalMilliseconds} milliseconds.");
Microsoft.Extensions.TimeProvider.Testing (2)
Timer.cs (2)
32var dueTimeMs = (long)dueTime.TotalMilliseconds; 33var periodMs = (long)period.TotalMilliseconds;
Microsoft.Extensions.TimeProvider.Testing.Tests (4)
FakeTimeProviderTests.cs (4)
178Assert.Equal(1234D, utcDelta.TotalMilliseconds); 180Assert.Equal(1234, elapsedTime.TotalMilliseconds); 202Assert.Equal(1234D, utcDelta.TotalMilliseconds); 204Assert.Equal(1234, elapsedTime.TotalMilliseconds);
Microsoft.Maui (1)
Animations\AnimationManager.cs (1)
84 var milliseconds = TimeSpan.FromMilliseconds(now - _lastUpdate).TotalMilliseconds;
Microsoft.Maui.Controls (1)
TimePicker\TimePicker.cs (1)
27 return time.TotalHours < 24 && time.TotalMilliseconds >= 0;
Microsoft.Maui.Controls.Build.Tasks (1)
PerformanceProvider.cs (1)
66 double total = TimeSpan.FromTicks(kvp.Value.TotalTime).TotalMilliseconds;
Microsoft.Maui.Essentials (1)
Vibration\Vibration.shared.cs (1)
112 if (duration.TotalMilliseconds < 0)
Microsoft.ML.AutoML (1)
AutoMLExperiment\IPerformanceMonitor.cs (1)
124var cpuUsedMs = elapseCpuProcessorTime.TotalMilliseconds;
Microsoft.ML.Samples.OneDal (3)
Program.cs (3)
183Console.WriteLine($"Random Forest Binary,{mainWatch.Elapsed.TotalMilliseconds},{metrics[0]},{metrics[1]},{metrics[2]},{metrics[3]}"); 190Console.WriteLine($"Random Forest Regression,{mainWatch.Elapsed.TotalMilliseconds},{metrics[0]},{metrics[1]},{metrics[2]},{metrics[3]}"); 198Console.WriteLine($"OLS Regression,{mainWatch.Elapsed.TotalMilliseconds},{metrics[0]},{metrics[1]},{metrics[2]},{metrics[3]}");
Microsoft.NET.Sdk.Razor.Tasks (1)
src\sdk\src\RazorSdk\Tool\Client.cs (1)
42var timeoutMilliseconds = timeout == null ? Timeout.Infinite : (int)timeout.Value.TotalMilliseconds;
Microsoft.TestPlatform.CrossPlatEngine (3)
Client\Parallel\ParallelRunDataAggregator.cs (2)
154ElapsedTime = TimeSpan.FromMilliseconds(Math.Max(ElapsedTime.TotalMilliseconds, elapsedTime.TotalMilliseconds));
Execution\TestRunCache.cs (1)
86if (cacheTimeout.TotalMilliseconds > int.MaxValue)
MSBuild (5)
src\msbuild\src\Shared\NodeEndpointOutOfProcBase.cs (1)
401int waitTimeRemaining = Math.Max(0, CommunicationsUtilities.NodeConnectionTimeout - (int)usedWaitTime.TotalMilliseconds);
XMake.cs (4)
613Console.WriteLine("||{0,50}|{1,20:N0}|{2,8}|", "Peak Privileged Processor Time", currentProcess.PrivilegedProcessorTime.TotalMilliseconds, "ms"); 614Console.WriteLine("||{0,50}|{1,20:N0}|{2,8}|", "Peak User Processor Time", currentProcess.UserProcessorTime.TotalMilliseconds, "ms"); 615Console.WriteLine("||{0,50}|{1,20:N0}|{2,8}|", "Peak Total Processor Time", currentProcess.TotalProcessorTime.TotalMilliseconds, "ms"); 1175AppendOutputFile(timerOutputFilename, (long)elapsedTime.TotalMilliseconds);
NuGet.Common (1)
DatetimeUtility.cs (1)
31result = time.TotalMilliseconds;
NuGet.Protocol (5)
HttpSource\HttpRetryHandler.cs (3)
92await Task.Delay(TimeSpan.FromMilliseconds((Math.Pow(2, tries) * request.RetryDelay.TotalMilliseconds) + new Random().Next(200)), cancellationToken); 151(int)request.RequestTimeout.TotalMilliseconds); 207if (retryAfter.Value.TotalMilliseconds < 0)
Utility\DownloadTimeoutStream.cs (2)
35networkStream.ReadTimeout = (int)timeout.TotalMilliseconds; 88_timeout.TotalMilliseconds);
PresentationCore (127)
System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (6)
393currentSegmentProgress = currentTime.TotalMilliseconds 394/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 406currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 407/ segmentDuration.TotalMilliseconds; 652keyTime.Percent * calculationDuration.TotalMilliseconds); 888(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (6)
404currentSegmentProgress = currentTime.TotalMilliseconds 405/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 417currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 418/ segmentDuration.TotalMilliseconds; 744keyTime.Percent * calculationDuration.TotalMilliseconds); 980(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (6)
393currentSegmentProgress = currentTime.TotalMilliseconds 394/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 406currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 407/ segmentDuration.TotalMilliseconds; 652keyTime.Percent * calculationDuration.TotalMilliseconds); 888(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (6)
404currentSegmentProgress = currentTime.TotalMilliseconds 405/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 417currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 418/ segmentDuration.TotalMilliseconds; 744keyTime.Percent * calculationDuration.TotalMilliseconds); 980(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (6)
404currentSegmentProgress = currentTime.TotalMilliseconds 405/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 417currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 418/ segmentDuration.TotalMilliseconds; 744keyTime.Percent * calculationDuration.TotalMilliseconds); 980(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (6)
404currentSegmentProgress = currentTime.TotalMilliseconds 405/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 417currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 418/ segmentDuration.TotalMilliseconds; 744keyTime.Percent * calculationDuration.TotalMilliseconds); 980(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (6)
404currentSegmentProgress = currentTime.TotalMilliseconds 405/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 417currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 418/ segmentDuration.TotalMilliseconds; 744keyTime.Percent * calculationDuration.TotalMilliseconds); 980(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (6)
404currentSegmentProgress = currentTime.TotalMilliseconds 405/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 417currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 418/ segmentDuration.TotalMilliseconds; 744keyTime.Percent * calculationDuration.TotalMilliseconds); 980(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (6)
404currentSegmentProgress = currentTime.TotalMilliseconds 405/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 417currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 418/ segmentDuration.TotalMilliseconds; 744keyTime.Percent * calculationDuration.TotalMilliseconds); 980(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (6)
393currentSegmentProgress = currentTime.TotalMilliseconds 394/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 406currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 407/ segmentDuration.TotalMilliseconds; 652keyTime.Percent * calculationDuration.TotalMilliseconds); 888(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (6)
393currentSegmentProgress = currentTime.TotalMilliseconds 394/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 406currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 407/ segmentDuration.TotalMilliseconds; 652keyTime.Percent * calculationDuration.TotalMilliseconds); 888(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (6)
404currentSegmentProgress = currentTime.TotalMilliseconds 405/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 417currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 418/ segmentDuration.TotalMilliseconds; 744keyTime.Percent * calculationDuration.TotalMilliseconds); 980(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (6)
404currentSegmentProgress = currentTime.TotalMilliseconds 405/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 417currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 418/ segmentDuration.TotalMilliseconds; 744keyTime.Percent * calculationDuration.TotalMilliseconds); 980(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (6)
404currentSegmentProgress = currentTime.TotalMilliseconds 405/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 417currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 418/ segmentDuration.TotalMilliseconds; 744keyTime.Percent * calculationDuration.TotalMilliseconds); 980(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (6)
404currentSegmentProgress = currentTime.TotalMilliseconds 405/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 417currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 418/ segmentDuration.TotalMilliseconds; 744keyTime.Percent * calculationDuration.TotalMilliseconds); 980(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (6)
404currentSegmentProgress = currentTime.TotalMilliseconds 405/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 417currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 418/ segmentDuration.TotalMilliseconds; 744keyTime.Percent * calculationDuration.TotalMilliseconds); 980(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (6)
404currentSegmentProgress = currentTime.TotalMilliseconds 405/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 417currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 418/ segmentDuration.TotalMilliseconds; 744keyTime.Percent * calculationDuration.TotalMilliseconds); 980(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (6)
404currentSegmentProgress = currentTime.TotalMilliseconds 405/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 417currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 418/ segmentDuration.TotalMilliseconds; 744keyTime.Percent * calculationDuration.TotalMilliseconds); 980(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (6)
393currentSegmentProgress = currentTime.TotalMilliseconds 394/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 406currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 407/ segmentDuration.TotalMilliseconds; 652keyTime.Percent * calculationDuration.TotalMilliseconds); 888(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (6)
404currentSegmentProgress = currentTime.TotalMilliseconds 405/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 417currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 418/ segmentDuration.TotalMilliseconds; 744keyTime.Percent * calculationDuration.TotalMilliseconds); 980(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (6)
404currentSegmentProgress = currentTime.TotalMilliseconds 405/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 417currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 418/ segmentDuration.TotalMilliseconds; 744keyTime.Percent * calculationDuration.TotalMilliseconds); 980(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\MediaContext.cs (1)
642EventTrace.EasyTraceEvent(EventTrace.Keyword.KeywordGraphics, EventTrace.Event.WClientScheduleRender, nextTickNeeded.TotalMilliseconds);
PresentationFramework (6)
System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (6)
404currentSegmentProgress = currentTime.TotalMilliseconds 405/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 417currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 418/ segmentDuration.TotalMilliseconds; 744keyTime.Percent * calculationDuration.TotalMilliseconds); 980(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Dependencies\Threading\TestHooks\IExpeditableDelaySource.cs (1)
26/// <para>The <paramref name="delay"/> argument's <see cref="TimeSpan.TotalMilliseconds"/> property is greater than <see cref="int.MaxValue"/>.</para>
rzc (1)
Client.cs (1)
42var timeoutMilliseconds = timeout == null ? Timeout.Infinite : (int)timeout.Value.TotalMilliseconds;
Security.TransportSecurity.IntegrationTests (1)
Tcp\StreamingTests.4.1.0.cs (1)
240serviceOperationTimeout.TotalMilliseconds,
Shared (2)
ServerSentEvents\SseFormatter.cs (1)
132bufferWriter.WriteUtf8Number((long)retry.TotalMilliseconds);
ServerSentEvents\SseParser_1.cs (1)
47private readonly long TimeSpan_MaxValueMilliseconds = (long)TimeSpan.MaxValue.TotalMilliseconds;
System.Collections.Concurrent (5)
System\Collections\Concurrent\BlockingCollection.cs (5)
328return TryAddWithNoTimeValidation(item, (int)timeout.TotalMilliseconds, CancellationToken.None); 580return TryTakeWithNoTimeValidation(out item, (int)timeout.TotalMilliseconds, CancellationToken.None, null); 865return TryAddToAnyCore(collections, item, (int)timeout.TotalMilliseconds, CancellationToken.None); 1227return TryTakeFromAnyCore(collections, out item, (int)timeout.TotalMilliseconds, false, CancellationToken.None); 1699long totalMilliseconds = (long)timeout.TotalMilliseconds;
System.ComponentModel.TypeConverter (1)
System\Timers\Timer.cs (1)
71public Timer(TimeSpan interval) : this(interval.TotalMilliseconds)
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\Metrics\AggregationManager.cs (2)
184_pollingTimer = new Timer(CollectOnTimer, null, (int)delayTime.TotalMilliseconds, 0); 306_pollingTimer!.Change((int)delayTime.TotalMilliseconds, 0);
System.Diagnostics.EventLog (3)
System\Diagnostics\Reader\EventLogReader.cs (1)
131timeout = (int)ts.TotalMilliseconds;
System\Diagnostics\Reader\ProviderMetadataCachedInformation.cs (2)
117if (timeDifference.TotalMilliseconds >= maxPassedTime) 119maxPassedTime = timeDifference.TotalMilliseconds;
System.Diagnostics.Process (2)
System\Diagnostics\ProcessUtils.cs (1)
52long totalMilliseconds = (long)timeout.TotalMilliseconds;
System\Diagnostics\ProcessWaitState.Unix.cs (1)
442(int)Math.Max(millisecondsTimeout - Stopwatch.GetElapsedTime(startTime).TotalMilliseconds, 0);
System.DirectoryServices.Protocols (1)
System\DirectoryServices\Protocols\ldap\LdapSessionOptions.cs (1)
265if (value.TotalMilliseconds > int.MaxValue)
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.cs (1)
619long totalMilliseconds = (long)timeout.TotalMilliseconds;
System.IO.Pipes (1)
System\IO\Pipes\NamedPipeClientStream.cs (1)
210long totalMilliseconds = (long)timeout.TotalMilliseconds;
System.Management (2)
System\Management\ManagementEventWatcher.cs (1)
426(int)options.Timeout.TotalMilliseconds;
System\Management\ManagementObjectCollection.cs (1)
530(int)tag_WBEM_TIMEOUT_TYPE.WBEM_INFINITE : (int)collectionObject.options.Timeout.TotalMilliseconds;
System.Net.Http (13)
System\Net\Http\HttpTelemetry.AnyOS.cs (1)
36double timeOnQueueMs = duration.TotalMilliseconds;
System\Net\Http\SocketsHttpHandler\ChunkedEncodingReadStream.cs (1)
511cts = new CancellationTokenSource((int)drainTime.TotalMilliseconds);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionWaiter.cs (1)
92pool.Settings._connectTimeout != Timeout.InfiniteTimeSpan && timeout > (int)pool.Settings._connectTimeout.TotalMilliseconds) // Do not override shorter ConnectTimeout
System\Net\Http\SocketsHttpHandler\ContentLengthReadStream.cs (1)
223cts = new CancellationTokenSource((int)drainTime.TotalMilliseconds);
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
184double milliseconds = value.TotalMilliseconds;
System\Net\Http\SocketsHttpHandler\Http2StreamWindowManager.cs (1)
277if (NetEventSource.Log.IsEnabled()) connection.Trace($"[FlowControl] Updated MinRtt: {MinRtt.TotalMilliseconds} ms");
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (2)
354if (idleTicks > pooledConnectionIdleTimeout.TotalMilliseconds) 365if (lifetimeTicks > pooledConnectionLifetime.TotalMilliseconds)
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (2)
129long heartBeatInterval = (long)Math.Max(1000, Math.Min(_settings._keepAlivePingDelay.TotalMilliseconds, _settings._keepAlivePingTimeout.TotalMilliseconds) / 4);
System\Net\Http\SocketsHttpHandler\SocketsHttpHandler.cs (3)
180(value.TotalMilliseconds > int.MaxValue)) 249(value.TotalMilliseconds > int.MaxValue)) 265(value.TotalMilliseconds > int.MaxValue))
System.Net.Http.WinHttpHandler (5)
System\Net\Http\WinHttpHandler.cs (5)
1003uint optionData = (uint)(int)_receiveDataTimeout.TotalMilliseconds; 1125keepaliveinterval = (uint)(int)_tcpKeepAliveInterval.TotalMilliseconds, 1126keepalivetime = (uint)(int)_tcpKeepAliveTime.TotalMilliseconds 1251(int)_sendTimeout.TotalMilliseconds, 1252(int)_receiveHeadersTimeout.TotalMilliseconds))
System.Net.NameResolution (5)
System\Net\DnsResolverPal.Managed.cs (4)
648socket.SendTimeout = (int)s_queryTimeout.TotalMilliseconds; 649socket.ReceiveTimeout = (int)s_queryTimeout.TotalMilliseconds; 731socket.SendTimeout = (int)s_queryTimeout.TotalMilliseconds; 732socket.ReceiveTimeout = (int)s_queryTimeout.TotalMilliseconds;
System\Net\NameResolutionTelemetry.cs (1)
106_lookupsDuration?.WriteMetric(duration.TotalMilliseconds);
System.Net.Ping (3)
System\Net\NetworkInformation\Ping.cs (1)
657long totalMilliseconds = (long)timeout.TotalMilliseconds;
System\Net\NetworkInformation\Ping.RawSocket.cs (2)
232long roundTripTime = (long)Stopwatch.GetElapsedTime(startingTimestamp).TotalMilliseconds; 263while (Stopwatch.GetElapsedTime(startingTimestamp).TotalMilliseconds < timeout)
System.Net.Quic (6)
System\Net\Quic\Internal\MsQuicConfiguration.cs (3)
151? (ulong)options.IdleTimeout.TotalMilliseconds 159? (uint)options.KeepAliveInterval.TotalMilliseconds 179? (ulong)options.HandshakeTimeout.TotalMilliseconds
System\Net\Quic\NetEventSource.Quic.Counters.cs (1)
240if (s_countersLastFetched == 0 || Stopwatch.GetElapsedTime(s_countersLastFetched).TotalMilliseconds > 50)
System\Net\Quic\QuicStream.Stream.cs (2)
54return (int)_readTimeout.TotalMilliseconds; 73return (int)_writeTimeout.TotalMilliseconds;
System.Net.Requests (4)
System\Net\FtpWebRequest.cs (4)
547_remainingTimeout = Timeout - (int)((DateTime.UtcNow - _startTime).TotalMilliseconds); 734_remainingTimeout = Timeout - (int)((DateTime.UtcNow - _startTime).TotalMilliseconds); 875_remainingTimeout = Timeout - (int)((DateTime.UtcNow - _startTime).TotalMilliseconds); 900_remainingTimeout = Timeout - (int)((DateTime.UtcNow - _startTime).TotalMilliseconds);
System.Net.Security (3)
src\runtime\src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (1)
57long totalMillis = (long)downloadTimeout.TotalMilliseconds;
System\Net\Security\NetSecurityTelemetry.cs (2)
168HandshakeFailed(isServer, Stopwatch.GetElapsedTime(startingTimestamp).TotalMilliseconds, exceptionMessage); 216double duration = Stopwatch.GetElapsedTime(startingTimestamp).TotalMilliseconds;
System.Net.ServerSentEvents (2)
System\Net\ServerSentEvents\SseFormatter.cs (1)
135bufferWriter.WriteUtf8Number((long)retry.TotalMilliseconds);
System\Net\ServerSentEvents\SseParser_1.cs (1)
33private readonly long TimeSpan_MaxValueMilliseconds = (long)TimeSpan.MaxValue.TotalMilliseconds;
System.Net.Sockets (2)
System\Net\Sockets\NetworkStream.cs (1)
380long totalMilliseconds = (long)timeout.TotalMilliseconds;
System\Net\Sockets\SocketAsyncContext.Unix.cs (1)
1435timeout -= (int)Stopwatch.GetElapsedTime(waitStart).TotalMilliseconds;
System.Net.WebSockets (2)
System\Net\WebSockets\ManagedWebSocket.cs (1)
171long heartBeatIntervalMs = (long)keepAliveInterval.TotalMilliseconds;
System\Net\WebSockets\ManagedWebSocket.KeepAlive.cs (1)
151static int TimeSpanToMs(TimeSpan value) => (int)Math.Clamp((long)value.TotalMilliseconds, MinIntervalMs, int.MaxValue);
System.Private.CoreLib (31)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\CounterGroup.cs (2)
271counter.WritePayload((float)elapsed.TotalSeconds, (int)pollingInterval.TotalMilliseconds); 326int millisecondsTillNextPoll = Math.Max(1, (int)timeUntilNextPoll.TotalMilliseconds);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\RuntimeEventSource.cs (2)
100_totalGcPauseTimeCounter ??= new IncrementingPollingCounter("total-pause-time-by-gc", this, () => GC.GetTotalPauseDuration().TotalMilliseconds) { DisplayName = "Time paused by GC", DisplayUnits = "ms" }; 110_jitTimeCounter ??= new IncrementingPollingCounter("time-in-jit", this, () => Runtime.JitInfo.GetCompilationTime().TotalMilliseconds) { DisplayName = "Time spent in JIT", DisplayUnits = "ms", DisplayRateTimeScale = new TimeSpan(0, 0, 1) };
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (3)
151/// <exception cref="ArgumentOutOfRangeException"><paramref name="delay"/>'s <see cref="TimeSpan.TotalMilliseconds"/> is less than -1 or greater than <see cref="uint.MaxValue"/> - 1.</exception> 162long totalMilliseconds = (long)delay.TotalMilliseconds; 379long totalMilliseconds = (long)delay.TotalMilliseconds;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Lock.cs (1)
250/// of milliseconds by casting <see cref="TimeSpan.TotalMilliseconds"/> of the timeout to an integer value. A value
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ManualResetEventSlim.cs (2)
426long totalMilliseconds = (long)timeout.TotalMilliseconds; 459long totalMilliseconds = (long)timeout.TotalMilliseconds;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PeriodicTimer.cs (1)
112long ms = (long)value.TotalMilliseconds;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ReaderWriterLockSlim.cs (1)
240long ltm = (long)timeout.TotalMilliseconds;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\SemaphoreSlim.cs (4)
213long totalMilliseconds = (long)timeout.TotalMilliseconds; 243long totalMilliseconds = (long)timeout.TotalMilliseconds; 585long totalMilliseconds = (long)timeout.TotalMilliseconds; 618long totalMilliseconds = (long)timeout.TotalMilliseconds;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\SpinLock.cs (2)
225long totalMilliseconds = (long)timeout.TotalMilliseconds; 233TryEnter((int)timeout.TotalMilliseconds, ref lockTaken);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\SpinWait.cs (1)
282long totalMilliseconds = (long)timeout.TotalMilliseconds;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (6)
2834long totalMilliseconds = (long)timeout.TotalMilliseconds; 4954long totalMilliseconds = (long)timeout.TotalMilliseconds; 5381long totalMilliseconds = (long)timeout.TotalMilliseconds; 5859/// <exception cref="ArgumentOutOfRangeException"><paramref name="delay"/>'s <see cref="TimeSpan.TotalMilliseconds"/> property is greater than 4294967294.</exception> 5890/// <exception cref="ArgumentOutOfRangeException"><paramref name="delay"/>'s <see cref="TimeSpan.TotalMilliseconds"/> property is greater than 4294967294.</exception> 5948long totalMilliseconds = (long)timeout.TotalMilliseconds;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (2)
1505long tm = (long)timeout.TotalMilliseconds; 1526long tm = (long)timeout.TotalMilliseconds;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Timer.cs (3)
489long tm = (long)time.TotalMilliseconds; 847long dueTm = (long)dueTime.TotalMilliseconds; 851long periodTm = (long)period.TotalMilliseconds;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (1)
81long timeoutMilliseconds = (long)timeout.TotalMilliseconds;
System.Runtime.Caching (2)
System\Runtime\Caching\Configuration\ConfigUtil.cs (1)
74double milliseconds = tValue.TotalMilliseconds;
System\Runtime\Caching\MemoryCacheStatistics.cs (1)
141double milliseconds = element.PollingInterval.TotalMilliseconds;
System.Security.Cryptography (2)
src\runtime\src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (1)
57long totalMillis = (long)downloadTimeout.TotalMilliseconds;
System\Security\Cryptography\X509Certificates\ChainPal.Windows.BuildChain.cs (1)
61chainPara.dwUrlRetrievalTimeout = (int)Math.Floor(timeout.TotalMilliseconds);
System.ServiceModel.Primitives (3)
Internals\System\Runtime\TimeoutHelper.cs (1)
51_cancellationToken = await TimeoutTokenSource.FromTimeoutAsync((int)timeout.TotalMilliseconds);
System\ServiceModel\Channels\TransmissionStrategy.cs (1)
89_meanRtt = Math.Min((long)initRtt.TotalMilliseconds, Constants.MaxMeanRtt >> Constants.TimeMultiplier) << Constants.TimeMultiplier;
System\ServiceModel\Diagnostics\TraceUtility.cs (1)
87return (long)elapsedTime.TotalMilliseconds;
System.ServiceProcess.ServiceController (1)
System\ServiceProcess\ServiceBase.cs (1)
87long totalMilliseconds = (long)time.TotalMilliseconds;
System.Speech (7)
Recognition\SpeechRecognitionEngine.cs (6)
157if (value.TotalMilliseconds < 0.0f || value.TotalMilliseconds > 10000.0f) 161RecoBase.UpdateRecognizerSetting(SapiConstants.SPPROP_RESPONSE_SPEED, (int)value.TotalMilliseconds); 170if (value.TotalMilliseconds < 0.0f || value.TotalMilliseconds > 10000.0f) 174RecoBase.UpdateRecognizerSetting(SapiConstants.SPPROP_COMPLEX_RESPONSE_SPEED, (int)value.TotalMilliseconds);
Synthesis\PromptBuilder.cs (1)
653breakElement._attributes.Add(new AttributeItem("time", duration.TotalMilliseconds + "ms"));
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\RegexRunner.cs (1)
352_timeout = (int)(timeout.TotalMilliseconds + 0.5); // Round;
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.cs (1)
176_timeout = (int)(matchTimeout.TotalMilliseconds + 0.5); // Round up, so it will be at least 1ms
System.Threading (5)
System\Threading\Barrier.cs (2)
580long totalMilliseconds = (long)timeout.TotalMilliseconds; 586return SignalAndWait((int)timeout.TotalMilliseconds, cancellationToken);
System\Threading\CountdownEvent.cs (2)
459long totalMilliseconds = (long)timeout.TotalMilliseconds; 490long totalMilliseconds = (long)timeout.TotalMilliseconds;
System\Threading\ReaderWriterLock.cs (1)
1109var timeoutMilliseconds = (long)timeout.TotalMilliseconds;
System.Threading.Tasks.Dataflow (2)
Base\DataflowBlock.cs (1)
1003int millisecondsTimeout = (int)timeout.TotalMilliseconds;
Internal\Common.cs (1)
422long millisecondsTimeout = (long)timeout.TotalMilliseconds;
System.Transactions.Local (1)
System\Transactions\Oletx\DtcTransactionManager.cs (1)
117returnTimeout = Convert.ToUInt32(timeout.TotalMilliseconds, CultureInfo.CurrentCulture);
System.Windows.Forms (1)
System\Windows\Forms\Rendering\Animation\AnimationManager.cs (1)
205float progress = 1 - (float)(remaining.TotalMilliseconds / item.AnimationDuration);
VBCSCompiler (1)
src\roslyn\src\Compilers\Server\VBCSCompiler\BuildServerController.cs (1)
131compilerServerHost.Logger.Log("Keep alive timeout is: {0} milliseconds.", keepAlive.Value.TotalMilliseconds);
vstest.console (2)
Internal\MSBuildLogger.cs (1)
122var time = e.ElapsedTimeInRunningTests.TotalMilliseconds;
Processors\EnableBlameArgumentProcessor.cs (1)
241hangDumpParameters.Add("TestTimeout", TimeSpan.FromHours(1).TotalMilliseconds.ToString(CultureInfo.CurrentCulture));
vstest.console.arm64 (2)
src\vstest\src\vstest.console\Internal\MSBuildLogger.cs (1)
122var time = e.ElapsedTimeInRunningTests.TotalMilliseconds;
src\vstest\src\vstest.console\Processors\EnableBlameArgumentProcessor.cs (1)
241hangDumpParameters.Add("TestTimeout", TimeSpan.FromHours(1).TotalMilliseconds.ToString(CultureInfo.CurrentCulture));