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

<p><code>Ticks.from(duration)</code> returns the number of ticks <b>from</b> the given duration.</p>

@param duration the duration of time
@param unit the unit the duration is in
@return the number of ticks which represent the duration
helper/src/main/java/me/lucko/helper/scheduler/Ticks.java