Here you can find the source of currentTimeMillis()
public static final long currentTimeMillis()
//package com.java2s; //License from project: Apache License public class Main { private static long CURRENT_TIME = System.currentTimeMillis(); public static final long currentTimeMillis() { return CURRENT_TIME; }//from w ww .j a v a 2 s .co m }