Here you can find the source of CurrentTimeString()
public static String CurrentTimeString()
//package com.java2s; /**// w w w. jav a2 s . c om * CEDP: Computer Evaluator for Dependability and Performance * This file is distributed under the University of Illinois Open Source * License. See LICENSE.TXT for details. */ import java.sql.Time; public class Main { public static String CurrentTimeString() { long t = System.currentTimeMillis(); return (new Time(t)).toString() + "." + t % 1000; } }