A game framework written with osu! in mind.
1// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
2// See the LICENCE file in the repository root for full licence text.
3
4namespace osu.Framework.Timing
5{
6 /// <summary>
7 /// A basic clock for keeping time.
8 /// </summary>
9 public interface IClock
10 {
11 /// <summary>
12 /// The current time of this clock, in milliseconds.
13 /// </summary>
14 double CurrentTime { get; }
15
16 /// <summary>
17 /// The rate this clock is running at, relative to real-time.
18 /// </summary>
19 double Rate { get; }
20
21 /// <summary>
22 /// Whether this clock is currently running or not.
23 /// </summary>
24 bool IsRunning { get; }
25 }
26}