Java Time Since Format timeSince(long timestart)

Here you can find the source of timeSince(long timestart)

Description

Time elapsed since a start time.

License

Open Source License

Parameter

Parameter Description
timestart in nanoseconds

Return

nanoseconds since timestart

Declaration

public static long timeSince(long timestart) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**//from  w ww . j  a  v  a 2s . c o m
     * Time elapsed since a start time.
     * @param timestart in nanoseconds
     * @return nanoseconds since timestart
     */
    public static long timeSince(long timestart) {
        return (System.nanoTime() - timestart);
    }
}

Related

  1. differenceNumberOfDays(long lodTime, long currentTime)
  2. timeSince()
  3. timeSince(long lastTimeInMillis)
  4. timeSince(long t)
  5. timeSinceNanos(long prevTime)
  6. timeSincePretty(long time)