Java Time Print printTime(long starttime, long endtime)

Here you can find the source of printTime(long starttime, long endtime)

Description

Prints the TIME difference

License

Apache License

Declaration

public static void printTime(long starttime, long endtime) 

Method Source Code

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

public class Main {
    /** Prints the TIME difference */
    public static void printTime(long starttime, long endtime) {
        long totaltime = (endtime - starttime) / 1000;
        System.out.print("\nTime Taken: [Hours: " + totaltime / 60 / 60 + ", Minutes: " + totaltime / 60 % 60
                + ", Seconds: " + totaltime % 60 % 60 + "]");
    }//  ww w  .j a v  a2s  . co  m
}

Related

  1. printTime(long millis)
  2. printTime(long time, String spacer)
  3. printTime(String msg)
  4. printTimer(String blah)
  5. printTimes(String what, long... args)