// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; namespace Microsoft.AspNetCore.Internal { internal interface ISystemClock { /// /// Retrieves the current UTC system time. /// DateTimeOffset UtcNow { get; } /// /// Retrieves ticks for the current UTC system time. /// long UtcNowTicks { get; } /// /// Retrieves the current UTC system time. /// This is only safe to use from code called by the Heartbeat. /// DateTimeOffset UtcNowUnsynchronized { get; } } }