Here you can find the source of convertMsToFloatSeconds(final long timeMs)
public static float convertMsToFloatSeconds(final long timeMs)
//package com.java2s; //License from project: Apache License public class Main { public static final int MS_IN_SECOND = 1000; public static float convertMsToFloatSeconds(final long timeMs) { return (float) timeMs / MS_IN_SECOND; }//from ww w.ja v a2s.c o m }