Java TimeUnit Usage minutesSince(final long startNanos)

Here you can find the source of minutesSince(final long startNanos)

Description

minutes Since

License

Apache License

Declaration

public static long minutesSince(final long startNanos) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.concurrent.TimeUnit;

public class Main {
    public static long minutesSince(final long startNanos) {
        return timeSince(startNanos, TimeUnit.MINUTES);
    }//from   w w w . j av a2  s  . c  o  m

    public static long timeSince(final long startNanos, final TimeUnit destUnit) {
        return destUnit.convert(System.nanoTime() - startNanos, TimeUnit.NANOSECONDS);
    }
}

Related

  1. millisToStringConvert(long millis)
  2. millisToTime(long millis)
  3. millisToTimeDelta(long millis)
  4. min()
  5. minutesBetween(Date date1, Date date2)
  6. nanoElapseToHumanReadable(final Long nanoElapse)
  7. nanosToHMSms(long nanos)
  8. nanosToSecs(long nanos)
  9. nanoToString(final long nanos)