Here you can find the source of timeSinceMillis(long timestart)
Parameter | Description |
---|---|
timestart | in nanoseconds |
public static long timeSinceMillis(long timestart)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from w ww . j a v a2 s .c o m*/ * Time elapsed since a start time. * @param timestart in nanoseconds * @return milliseconds since timestart */ public static long timeSinceMillis(long timestart) { return (timeSince(timestart) / 1000000); } /** * Time elapsed since a start time. * @param timestart in nanoseconds * @return nanoseconds since timestart */ public static long timeSince(long timestart) { return (System.nanoTime() - timestart); } }