File: Common\DelayTimeSpan.cs
Web Access
Project: src\src\Features\Core\Portable\Microsoft.CodeAnalysis.Features.csproj (Microsoft.CodeAnalysis.Features)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
 
using System;
 
namespace Microsoft.CodeAnalysis;
 
internal static class DelayTimeSpan
{
    /// <summary>
    /// 50 milliseconds.
    /// </summary>
    public static readonly TimeSpan NearImmediate = TimeSpan.FromMilliseconds(50);
 
    /// <summary>
    /// 250 milliseconds.
    /// </summary>
    public static readonly TimeSpan Short = TimeSpan.FromMilliseconds(250);
 
    /// <summary>
    /// 500 milliseconds.
    /// </summary>
    public static readonly TimeSpan Medium = TimeSpan.FromMilliseconds(500);
 
    /// <summary>
    /// 1.5 seconds.
    /// </summary>
    public static readonly TimeSpan Idle = TimeSpan.FromMilliseconds(1500);
 
    /// <summary>
    /// 10 seconds.
    /// </summary>
    public static readonly TimeSpan IdleWithLongDelay = TimeSpan.FromMilliseconds(10000);
 
    /// <summary>
    /// 3 seconds.
    /// </summary>
    public static readonly TimeSpan NonFocus = TimeSpan.FromMilliseconds(3000);
}