Here you can find the source of sleepNoShit(long nanos)
public static void sleepNoShit(long nanos)
//package com.java2s; /**// w w w.ja v a 2 s . co m * This class is part of JCodec ( www.jcodec.org ) This software is distributed * under FreeBSD License * * @author The JCodec project * */ public class Main { public static void sleepNoShit(long nanos) { if (nanos < 0) return; try { Thread.sleep(nanos / 1000000, (int) (nanos % 1000000)); } catch (InterruptedException e) { } } }