Here you can find the source of printTimeStamp(final String msg)
public static void printTimeStamp(final String msg)
//package com.java2s; //License from project: Open Source License public class Main { /** XConfiguration management verbosity.*/ public static final boolean performances = true; /** Last current time.*/ protected static long time = System.currentTimeMillis(); /**//from w w w . ja va2 s . c o m * Monitor time between calls. */ public static void printTimeStamp(final String msg) { long nextTime = System.currentTimeMillis(); long deltaTime = nextTime - time; if (performances) { System.out.println((msg.startsWith("*") ? "" : " | ") + msg + " in " + deltaTime + " ms."); } time = nextTime; } }