Here you can find the source of getSecondsTimeStamp()
public static int getSecondsTimeStamp()
//package com.java2s; //License from project: Apache License import java.util.concurrent.TimeUnit; public class Main { public static int getSecondsTimeStamp() { return (int) TimeUnit.NANOSECONDS.toSeconds(System.nanoTime()); }/*from w w w .j a v a2s. c o m*/ }