Java Sleep sleepABitMore()

Here you can find the source of sleepABitMore()

Description

sleep A Bit More

License

Open Source License

Declaration

private static long sleepABitMore() throws InterruptedException 

Method Source Code

//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;
    }
}

Related

  1. sleep(long time)
  2. sleep(long timeToSleep)
  3. sleep4Subscription()
  4. sleep_force(long timeToSleep)
  5. sleepABit(long millis)
  6. sleepAfterListItems()
  7. sleepAndIgnoreInterrupts(int millis)
  8. sleepAtLeast(long milliseconds)
  9. sleepAtLeast(long milliseconds)