A game framework written with osu! in mind.
at master 557 B view raw
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 public class OffsetClock : IClock 7 { 8 protected IClock Source; 9 10 public double Offset; 11 12 public double CurrentTime => Source.CurrentTime + Offset; 13 14 public double Rate => Source.Rate; 15 16 public bool IsRunning => Source.IsRunning; 17 18 public OffsetClock(IClock source) 19 { 20 Source = source; 21 } 22 } 23}