Here you can find the source of toMilliSeconds(float t)
public static int toMilliSeconds(float t)
//package com.java2s; //License from project: Open Source License public class Main { public static int toMilliSeconds(float t) { return (int) (t * 1000); }//from w ww.java2s . c o m }