Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / System.Runtime.DurableInstancing / System / Runtime / BackoffTimeoutHelper.cs / 1305376 / BackoffTimeoutHelper.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.Runtime
{
using System;
using System.Threading;
sealed class BackoffTimeoutHelper
{
readonly static int maxSkewMilliseconds = (int)(IOThreadTimer.SystemTimeResolutionTicks / TimeSpan.TicksPerMillisecond);
readonly static long maxDriftTicks = IOThreadTimer.SystemTimeResolutionTicks * 2;
readonly static TimeSpan defaultInitialWaitTime = TimeSpan.FromMilliseconds(1);
readonly static TimeSpan defaultMaxWaitTime = TimeSpan.FromMinutes(1);
DateTime deadline;
TimeSpan maxWaitTime;
TimeSpan waitTime;
IOThreadTimer backoffTimer;
Action