Here you can find the source of sleepABitMore()
private static long sleepABitMore() throws InterruptedException
//package com.java2s; /******************************************************************************* * Copyright (c) 2012 VMware Inc.//from w ww .j a v a 2 s . com * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * VMware Inc. - initial contribution *******************************************************************************/ public class Main { private static long sleepABitMore() throws InterruptedException { long before = System.currentTimeMillis(); Thread.sleep(100); return System.currentTimeMillis() - before; } }