diff --git a/osu.Game/Beatmaps/Objects/BaseHit.cs b/osu.Game/Beatmaps/Objects/BaseHit.cs index 1be3faa4af..47aa4c3b18 100644 --- a/osu.Game/Beatmaps/Objects/BaseHit.cs +++ b/osu.Game/Beatmaps/Objects/BaseHit.cs @@ -13,6 +13,8 @@ public abstract class BaseHit public double StartTime; public double? EndTime; + public double Duration => (EndTime ?? StartTime) - StartTime; + public HitSampleInfo Sample; } }