Here you can find the source of getCurrentMiliseconds()
public static int getCurrentMiliseconds()
//package com.java2s; public class Main { public static int getCurrentMiliseconds() { return (int) (System.currentTimeMillis() % 1000); }/*www . j av a 2s . c o m*/ }