Java Minute Convert minutesToTicks(double x)

Here you can find the source of minutesToTicks(double x)

Description

D&D minutes to ticks (16 seconds per MC 'minute')

License

LGPL

Declaration

public static int minutesToTicks(double x) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    public static final int TICKS_PER_SEC = 20;
    public static final int SEC_PER_MIN = 15;

    /** D&D minutes to ticks (16 seconds per MC 'minute') **/
    public static int minutesToTicks(double x) {
        return secondsToTicks(x * SEC_PER_MIN);
    }/*from   ww w  .  j  a v a2  s.  com*/

    /** standard MC ratio **/
    public static int secondsToTicks(double x) {
        return (int) x * TICKS_PER_SEC;
    }
}

Related

  1. minutesToSamples(int sampleRate, int minutes)
  2. MinutesToSeconds(long minutes)
  3. minutesToSecs(long minutes)
  4. minutesToShortTime(int minutes)
  5. minutesToString(Integer minutes)
  6. minutesToTicks(int minutes)
  7. minutesToTime(int inTime)
  8. minuteToMillis(long minute)
  9. minuteToTime(int minute)