Here you can find the source of roundsToTicks(double x)
public static int roundsToTicks(double x)
//package com.java2s; //License from project: LGPL public class Main { public static final int TICKS_PER_SEC = 20; public static final int SEC_PER_ROUND = 3; /** D&D rounds to ticks (2 seconds per round) **/ public static int roundsToTicks(double x) { return secondsToTicks(x * SEC_PER_ROUND); }/*from w w w .ja va2s .c om*/ /** standard MC ratio **/ public static int secondsToTicks(double x) { return (int) x * TICKS_PER_SEC; } }