Java tutorial
//package com.java2s; public class Main { public static void sleep() { // sleep(formatTime(0.2f)); calculation(20); } public static void calculation(long time) { //ensure that it doesn't take all of the processor power try { Thread.sleep(time); } catch (InterruptedException e) { // Debug.error(e); e.printStackTrace(); } } }