mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-07 08:44:29 +08:00
25 lines
600 B
C#
25 lines
600 B
C#
// Copyright (c) 2025-2026 GeWuYou
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
namespace GFramework.Core.Abstractions.Coroutine;
|
|
|
|
/// <summary>
|
|
/// 时间源接口,提供当前时间、时间增量以及更新功能
|
|
/// </summary>
|
|
public interface ITimeSource
|
|
{
|
|
/// <summary>
|
|
/// 获取当前时间
|
|
/// </summary>
|
|
double CurrentTime { get; }
|
|
|
|
/// <summary>
|
|
/// 获取时间增量(上一帧到当前帧的时间差)
|
|
/// </summary>
|
|
double DeltaTime { get; }
|
|
|
|
/// <summary>
|
|
/// 更新时间源的状态
|
|
/// </summary>
|
|
void Update();
|
|
} |