Here you can find the source of secondsToTicks(double x)
public static int secondsToTicks(double x)
//package com.java2s; //License from project: LGPL public class Main { public static final int TICKS_PER_SEC = 20; /** standard MC ratio **/ public static int secondsToTicks(double x) { return (int) x * TICKS_PER_SEC; }/*ww w . j a v a2 s . c om*/ }