Here you can find the source of printError(String s)
public static void printError(String s)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean ERROR = true; public static long time; public static void printError(String s) { if (ERROR) System.out.printf("[ERROR] [%05d] %s%n", timeSince(), s); }//from w w w.j av a 2 s. com public static long timeSince() { return (System.currentTimeMillis() - time) / 1000; } }