Here you can find the source of secondsToTicks(float seconds)
public static int secondsToTicks(float seconds)
//package com.java2s; //License from project: LGPL public class Main { public static int secondsToTicks(int seconds) { return seconds * 20; }//from w w w . j a v a 2s .c o m public static int secondsToTicks(float seconds) { return (int) seconds * 20; } }