Java Time Different printTimeDiff(Long oldDate, Long newDate, String message)

Here you can find the source of printTimeDiff(Long oldDate, Long newDate, String message)

Description

print Time Diff

License

Open Source License

Declaration

public static Long printTimeDiff(Long oldDate, Long newDate,
            String message) 

Method Source Code

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

public class Main {
    public static Long printTimeDiff(Long oldDate, Long newDate,
            String message) {//from w  w w .ja va  2  s . c  o  m
        System.out.println(message + ": " + (newDate - oldDate));
        return newDate;
    }
}

Related

  1. getFormattedTimeWithDiff(DateFormat dateFormat, long finishTime, long startTime)
  2. getTimeDiff(String start, String end, String format, int timeDiff)
  3. getTimeDiffMin(String format, String startDate, String endDate)
  4. isDateDiff_2(String pattern, String time2, String time1)
  5. isLowerThanMinTimeDiff(Date lastUpdate, Date now, Long minTimeDiff)
  6. printTimeDiffNano(String message, long start)
  7. timeDiff(Calendar calenndarCurrentTime, Calendar calenndarStartTime)
  8. timeDiff(Date salida, Date llegada)