Here you can find the source of ceilSec(long milli)
public static long ceilSec(long milli)
//package com.java2s; //License from project: Mozilla Public License public class Main { public static long ceilSec(long milli) { return ((milli + 999L) / 1000L) * 1000L; }/*from w ww .j a v a2s . co m*/ }