Here you can find the source of timeSince(long t)
Parameter | Description |
---|---|
t | A time before now |
public static long timeSince(long t)
//package com.java2s; /*/*from w ww. ja v a 2 s . c om*/ * Utils.java - Copyright(c) 2013 Joe Pasqua * Provided under the MIT License. See the LICENSE file for details. * Created: Jul 8, 2013 */ public class Main { /** * Return the number of milliseconds that have elapsed between the specified * time and now (as determined by System.currentTimeMillis). * @param t A time before now * @return The difference between System.currentTimeMillis() and t */ public static long timeSince(long t) { return System.currentTimeMillis() - t; } }