public static long to(long ticks, @Nonnull TimeUnit unit) {
        return unit.convert(ticks * MILLISECONDS_PER_TICK, TimeUnit.MILLISECONDS);
    }
Converts ticks to a duration in a certain unit of time.

<p><code>Ticks.to(ticks)</code> converts the number of ticks <b>to</b> a duration.</p>

@param ticks the number of ticks
@param unit the unit to return the duration in
@return a duration value in the given unit, representing the number of ticks
helper/src/main/java/me/lucko/helper/scheduler/Ticks.java