Use System.getTimeInMillis(). Is much faster.