mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-04-21 20:23:14 +02:00
38 lines
931 B
C#
38 lines
931 B
C#
using ARMeilleure.State;
|
|
using System;
|
|
|
|
namespace Ryujinx.Cpu
|
|
{
|
|
/// <summary>
|
|
/// Tick source interface.
|
|
/// </summary>
|
|
public interface ITickSource : ICounter
|
|
{
|
|
public const long RealityTickScalar = 100;
|
|
|
|
/// <summary>
|
|
/// Time elapsed since the counter was created.
|
|
/// </summary>
|
|
TimeSpan ElapsedTime { get; }
|
|
|
|
/// <summary>
|
|
/// Clock tick scalar, in percent points (100 = 1.0).
|
|
/// </summary>
|
|
long TickScalar { get; set; }
|
|
|
|
/// <summary>
|
|
/// Time elapsed since the counter was created, in seconds.
|
|
/// </summary>
|
|
double ElapsedSeconds { get; }
|
|
|
|
/// <summary>
|
|
/// Stops counting.
|
|
/// </summary>
|
|
void Suspend();
|
|
|
|
/// <summary>
|
|
/// Resumes counting after a call to <see cref="Suspend"/>.
|
|
/// </summary>
|
|
void Resume();
|
|
}
|
|
}
|