// Copyright (c) 2007-2018 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE namespace osu.Game.Beatmaps.Timing { public class BreakPeriod { /// /// The minimum duration required for a break to have any effect. /// public const double MIN_BREAK_DURATION = 650; /// /// The break start time. /// public double StartTime; /// /// The break end time. /// public double EndTime; /// /// The break duration. /// public double Duration => EndTime - StartTime; /// /// Whether the break has any effect. Breaks that are too short are culled before they are added to the beatmap. /// public bool HasEffect => Duration >= MIN_BREAK_DURATION; } }