Java Time Print printTimeTakenMs(String msg, long start, long finish)

Here you can find the source of printTimeTakenMs(String msg, long start, long finish)

Description

print Time Taken Ms

License

Open Source License

Declaration

public static String printTimeTakenMs(String msg, long start, long finish) 

Method Source Code

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

public class Main {
    public static String printTimeTakenMs(String msg, long start, long finish) {
        StringBuilder bldr = new StringBuilder();
        bldr.append(msg).append(" Time taken: ").append((finish - start)).append(" milliseconds.");
        return bldr.toString();
    }//from   w w w .  jav a 2 s. c o  m
}

Related

  1. printTime(String msg)
  2. printTimer(String blah)
  3. printTimes(String what, long... args)
  4. printTimestamp()
  5. printTimeStamp(final String msg)
  6. standardTime(Date date)