Here you can find the source of timeSince()
public static long timeSince()
//package com.java2s; //License from project: Open Source License public class Main { public static long time; public static long timeSince() { return (System.currentTimeMillis() - time) / 1000; }/* www.ja v a 2 s.com*/ }